File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -283,11 +283,11 @@ async fn linkup_request_handler(
283
283
let downstream_response_headers = downstream_upgrade_response. headers_mut ( ) ;
284
284
285
285
// The headers from the upstream response are more important - trust the upstream server
286
- for upstream_header in upstream_response. headers ( ) {
286
+ for ( upstream_key , upstream_value ) in upstream_response. headers ( ) {
287
287
// Except for content encoding headers, cloudflare does _not_ like them..
288
- if !DISALLOWED_HEADERS . contains ( & upstream_header . 0 . to_string ( ) . as_str ( ) ) {
288
+ if !DISALLOWED_HEADERS . contains ( & upstream_key . as_str ( ) ) {
289
289
downstream_response_headers
290
- . insert ( upstream_header . 0 , upstream_header . 1 . clone ( ) ) ;
290
+ . insert ( upstream_key . clone ( ) , upstream_value . clone ( ) ) ;
291
291
}
292
292
}
293
293
You can’t perform that action at this time.
0 commit comments