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 bce9ff2 commit b65d2a8Copy full SHA for b65d2a8
src/proto/h1/role.rs
@@ -702,7 +702,7 @@ impl Server {
702
#[cfg(debug_assertions)]
703
{
704
if let Some(len) = headers::content_length_parse(&value) {
705
- if (msg.req_method != &Some(Method::HEAD) || known_len != 0) {
+ if msg.req_method != &Some(Method::HEAD) || known_len != 0 {
706
assert!(
707
len == known_len,
708
"payload claims content-length of {}, custom content-length header claims {}",
0 commit comments