add header for post_bytes
@@ -607,6 +607,7 @@ impl HttpClient {
{
request_builder = request_builder.timeout(_timeout);
}
+ request_builder = request_builder.header("Content-Type", "application/octet-stream");
Self::parse_response(request_builder.body(body.to_vec()).send().await?).await
}
@@ -646,6 +647,7 @@ impl HttpClient {
if let Some(jwt) = node.jwt {
request_builder = request_builder.set("Authorization", &format!("Bearer {}", jwt));
}
+ request_builder = request_builder.set("Content-Type", "application/octet-stream");
Ok(request_builder.send_bytes(body)?.into())
}
