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 {
130
130
if let Some ( name) = name {
131
131
let name = name. as_str ( ) ;
132
132
let name = HeaderName :: from_str ( name) ?;
133
- res. insert_header ( name, value) ;
133
+ res. append_header ( name, value) ;
134
134
}
135
135
}
136
136
Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ impl HttpClient for IsahcClient {
51
51
let body = Body :: from_reader ( BufReader :: new ( body) , None ) ;
52
52
let mut response = http_types:: Response :: new ( parts. status . as_u16 ( ) ) ;
53
53
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 ( ) ) ;
55
55
}
56
56
57
57
if let Some ( metrics) = maybe_metrics {
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ impl HttpClient for WasmClient {
40
40
response. set_body ( Body :: from ( body) ) ;
41
41
for ( name, value) in res. headers ( ) {
42
42
let name: http_types:: headers:: HeaderName = name. parse ( ) . unwrap ( ) ;
43
- response. insert_header ( & name, value) ;
43
+ response. append_header ( & name, value) ;
44
44
}
45
45
46
46
Ok ( response)
You can’t perform that action at this time.
0 commit comments