1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-06-25 22:49:21 +02:00

remove needless BodySize::Sized64 variant

This commit is contained in:
Rob Ede
2020-05-18 00:42:51 +01:00
parent b0866a8a0f
commit 7e8ea44d5c
7 changed files with 22 additions and 48 deletions

View File

@ -210,10 +210,6 @@ where
CONTENT_LENGTH,
HeaderValue::try_from(format!("{}", len)).unwrap(),
),
BodySize::Sized64(len) => res.headers_mut().insert(
CONTENT_LENGTH,
HeaderValue::try_from(format!("{}", len)).unwrap(),
),
};
// copy headers