-
Notifications
You must be signed in to change notification settings - Fork 49
H2 message stream #344
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
H2 message stream #344
Conversation
This reverts commit 7b0012b.
source/request_response.c
Outdated
| case AWS_HTTP_HEADER_HOST: | ||
| /* host header has been converted to :authority, do nothing here */ | ||
| break; | ||
| /* TODO: handle connection-specific header field (RFC7540 8.1.2.2) */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Itamar recently added some "connection-specific header" stuff, just heads-up
graebm
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fix & ship
source/hpack.c
Outdated
| struct aws_http_header header; | ||
| aws_http_headers_get_index(headers, i, &header); | ||
| if (s_encode_header_field(context, &header, output)) { | ||
| if (header.compression == AWS_HTTP_HEADER_COMPRESSION_USE_CACHE && |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
since splitting the COOKIE header is part of the HTTP/2 spec, and not the HPACK spec, this should be in h2_encoder.c
Or we can just remove it for now since the HTTP/2 spec says we MAY split cookies, but it's not required
https://httpwg.org/specs/rfc7540.html#CompressCookie
source/request_response.c
Outdated
| } | ||
|
|
||
| /* if host header found, add it as :authority */ | ||
| struct aws_byte_cursor authority_cursor; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmmm, a closer reading of the spec makes it seem like we should NOT create authority if the user didn't put it there themselves
https://httpwg.org/specs/rfc7540.html#rfc.section.8.1.2.3
Issue #, if available:
Description of changes:
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.