fix(http2): allow TE "trailers" request headers
The HTTP/2 spec allows TE headers in requests if the value is "trailers". Other TE headers are still stripped. Closes #1642
This commit is contained in:
committed by
Sean McArthur
parent
e3dc6c5511
commit
24f11a421d
@@ -184,6 +184,30 @@ t! {
|
||||
;
|
||||
}
|
||||
|
||||
t! {
|
||||
get_allow_te_trailers_header,
|
||||
client:
|
||||
request:
|
||||
uri: "/",
|
||||
headers: {
|
||||
// http2 strips connection headers other than TE "trailers"
|
||||
"te" => "trailers",
|
||||
},
|
||||
;
|
||||
response:
|
||||
status: 200,
|
||||
;
|
||||
server:
|
||||
request:
|
||||
uri: "/",
|
||||
headers: {
|
||||
"te" => "trailers",
|
||||
},
|
||||
;
|
||||
response:
|
||||
;
|
||||
}
|
||||
|
||||
t! {
|
||||
get_body_chunked,
|
||||
client:
|
||||
|
||||
Reference in New Issue
Block a user