feat(http2): set Content-Length header on outgoing messages

Closes #1547
This commit is contained in:
Laurențiu Nicola
2018-06-11 00:22:30 +02:00
committed by Sean McArthur
parent f20afba57d
commit 386fc0d70b
5 changed files with 97 additions and 0 deletions

View File

@@ -166,6 +166,29 @@ t! {
;
}
t! {
post_outgoing_length,
client:
request:
method: "POST",
uri: "/hello",
body: "hello, world!",
;
response:
;
server:
request:
method: "POST",
uri: "/hello",
headers: {
"content-length" => "13",
},
body: "hello, world!",
;
response:
;
}
t! {
post_chunked,
client: