File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -130,7 +130,7 @@ impl HttpTypesResponse {
130130 if let Some ( name) = name {
131131 let name = name. as_str ( ) ;
132132 let name = HeaderName :: from_str ( name) ?;
133- res. insert_header ( name, value) ;
133+ res. append_header ( name, value) ;
134134 }
135135 }
136136
Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ impl HttpClient for IsahcClient {
5151 let body = Body :: from_reader ( BufReader :: new ( body) , None ) ;
5252 let mut response = http_types:: Response :: new ( parts. status . as_u16 ( ) ) ;
5353 for ( name, value) in & parts. headers {
54- response. insert_header ( name. as_str ( ) , value. to_str ( ) . unwrap ( ) ) ;
54+ response. append_header ( name. as_str ( ) , value. to_str ( ) . unwrap ( ) ) ;
5555 }
5656
5757 if let Some ( metrics) = maybe_metrics {
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ impl HttpClient for WasmClient {
4040 response. set_body ( Body :: from ( body) ) ;
4141 for ( name, value) in res. headers ( ) {
4242 let name: http_types:: headers:: HeaderName = name. parse ( ) . unwrap ( ) ;
43- response. insert_header ( & name, value) ;
43+ response. append_header ( & name, value) ;
4444 }
4545
4646 Ok ( response)
You can’t perform that action at this time.
0 commit comments