1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-08-19 04:15:38 +02:00

HRS security fixes (#2363)

This commit is contained in:
Rob Ede
2021-08-12 20:18:09 +01:00
committed by GitHub
parent f6e69919ed
commit e965d8298f
8 changed files with 583 additions and 351 deletions

View File

@@ -81,6 +81,7 @@ pub(crate) trait MessageType: Sized {
match length {
BodySize::Stream => {
if chunked {
skip_len = true;
if camel_case {
dst.put_slice(b"\r\nTransfer-Encoding: chunked\r\n")
} else {