Skip to content

Commit

Permalink
fix: Fix headers in requests to firecracker
Browse files Browse the repository at this point in the history
  • Loading branch information
sousandrei committed Sep 17, 2022
1 parent 8dd8e97 commit 6010f31
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/vm/http.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ pub async fn send_request(vm_name: &str, url: &str, body: &str) -> Result<(), Ru
let req = match Request::builder()
.method(Method::PUT)
.uri(url)
.header("Accept", "Accept: application/json")
.header("Content-Type", "Accept: application/json")
.header("Accept", "application/json")
.header("Content-Type", "application/json")
.body(Body::from(body.to_owned()))
{
Ok(req) => req,
Expand Down

0 comments on commit 6010f31

Please sign in to comment.