Skip to content

Commit

Permalink
add content_length=0 header to get request
Browse files Browse the repository at this point in the history
  • Loading branch information
digizeph committed Mar 21, 2024
1 parent ee0b69e commit b442bb6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/oneio/remote.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ fn get_remote_http_raw(
reqwest::header::USER_AGENT,
reqwest::header::HeaderValue::from_static("oneio"),
);
headers.insert(
reqwest::header::CONTENT_LENGTH,
reqwest::header::HeaderValue::from_static("0"),
);
#[cfg(feature = "cli")]
headers.insert(
reqwest::header::CACHE_CONTROL,
Expand Down

0 comments on commit b442bb6

Please sign in to comment.