Skip to content

Conversation

@TingDaoK
Copy link
Contributor

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.

Base automatically changed from h2_message to main October 27, 2021 16:52
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) */
Copy link
Contributor

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

@TingDaoK TingDaoK requested a review from graebm November 2, 2021 21:09
Copy link
Contributor

@graebm graebm left a 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 &&
Copy link
Contributor

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

}

/* if host header found, add it as :authority */
struct aws_byte_cursor authority_cursor;
Copy link
Contributor

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

@TingDaoK TingDaoK merged commit 0426a06 into main Nov 3, 2021
@TingDaoK TingDaoK deleted the h2_message_stream branch November 3, 2021 22:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants