We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b990031 commit 67a4a49Copy full SHA for 67a4a49
src/proto/h2/server.rs
@@ -485,6 +485,13 @@ where
485
me.reply.send_reset(h2::Reason::INTERNAL_ERROR);
486
return Poll::Ready(Err(crate::Error::new_user_header()));
487
}
488
+ if res
489
+ .headers_mut()
490
+ .remove(::http::header::CONTENT_LENGTH)
491
+ .is_some()
492
+ {
493
+ warn!("successful response to CONNECT request disallows content-length header");
494
+ }
495
let send_stream = reply!(me, res, false);
496
connect_parts.pending.fulfill(Upgraded::new(
497
H2Upgraded {
0 commit comments