fix(http1): fix response with non-chunked transfer-encoding to be close-delimited
Closes #2058
This commit is contained in:
@@ -655,6 +655,35 @@ test! {
|
||||
body: None,
|
||||
}
|
||||
|
||||
test! {
|
||||
name: client_response_transfer_encoding_not_chunked,
|
||||
|
||||
server:
|
||||
expected: "\
|
||||
GET /te-not-chunked HTTP/1.1\r\n\
|
||||
host: {addr}\r\n\
|
||||
\r\n\
|
||||
",
|
||||
reply: "\
|
||||
HTTP/1.1 200 OK\r\n\
|
||||
transfer-encoding: yolo\r\n\
|
||||
\r\n\
|
||||
hallo\
|
||||
",
|
||||
|
||||
client:
|
||||
request: {
|
||||
method: GET,
|
||||
url: "http://{addr}/te-not-chunked",
|
||||
},
|
||||
response:
|
||||
status: OK,
|
||||
headers: {
|
||||
"transfer-encoding" => "yolo",
|
||||
},
|
||||
body: &b"hallo"[..],
|
||||
}
|
||||
|
||||
test! {
|
||||
name: client_pipeline_responses_extra,
|
||||
|
||||
|
||||
Reference in New Issue
Block a user