-
-
Notifications
You must be signed in to change notification settings - Fork 6.7k
Problem with gRPC over HTTP2 #17122
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
The TE header in HTTP/2 has a more limited use. https://www.rfc-editor.org/rfc/rfc9113.html#section-8.2.2
https://nghttp2.org/documentation/programmers-guide.html
So, TE header should not be stripped for HTTP/2. |
A "TE" request header is allowed in HTTP/2 when it only carries the "trailers" value. RFC 9113 ch. 8.2.2. Check client supplied TE values for the "trailers" token and only pass that one in a HTTP/2 request. Add test_01_17 to verify. refs curl#17122
Thanks for the report. I made #17128 to correct this. |
A "TE" request header is allowed in HTTP/2 when it only carries the "trailers" value. RFC 9113 ch. 8.2.2. Check client supplied TE values for the "trailers" token and only pass that one in a HTTP/2 request. Add test_01_17 to verify. Fixes curl#17122 Reported-by: epicmkirzinger on github Closes curl#17128
A "TE" request header is allowed in HTTP/2 when it only carries the "trailers" value. RFC 9113 ch. 8.2.2. Check client supplied TE values for the "trailers" token and only pass that one in a HTTP/2 request. Add test_01_17 to verify. Fixes curl#17122 Reported-by: epicmkirzinger on github Closes curl#17128
I did this
Make a HTTP/2 request with the TE request header set to "trailers". The TE request header is stripped from the request, not sent to the remote server.
I expected the following
The TE request header is not stripped.
Note that gRPC over HTTP2 requires that the TE header is set to "trailers". According to rfc9113, the TE header may be present, but must have a value of "trailers". 4e15605 strips it unconditionally instead of if the value is not equal to "trailers".
curl/libcurl version
8.12.1
operating system
Windows 10
The text was updated successfully, but these errors were encountered: