File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ use crate::util::retry::{retry, RetryPolicy};
1616use crate :: util:: KeyValueVecKeyPrinter ;
1717
1818const APPLICATION_OCTET_STREAM : & str = "application/octet-stream" ;
19+ const CONTENT_TYPE : & str = "content-type" ;
1920const DEFAULT_TIMEOUT_SECS : u64 = 10 ;
2021const MAX_RESPONSE_BODY_SIZE : usize = 1024 * 1024 * 1024 ; // 1GB
2122const DEFAULT_CLIENT_CAPACITY : usize = 10 ;
@@ -198,7 +199,7 @@ impl<R: RetryPolicy<E = VssError>> VssClient<R> {
198199 . map_err ( |e| VssError :: AuthError ( e. to_string ( ) ) ) ?;
199200
200201 let http_request = bitreq:: post ( url)
201- . with_header ( "content-type" , APPLICATION_OCTET_STREAM )
202+ . with_header ( CONTENT_TYPE , APPLICATION_OCTET_STREAM )
202203 . with_headers ( headers)
203204 . with_body ( request_body)
204205 . with_timeout ( DEFAULT_TIMEOUT_SECS )
You can’t perform that action at this time.
0 commit comments