send early hints - #1767
Merged
Merged
Conversation
kazuho
reviewed
May 29, 2018
| if (found == NULL) | ||
| found = end; | ||
| h2o_add_header_by_str(&generator->req->pool, &generator->req->res.headers, RSTRING_PTR(name), RSTRING_LEN(name), 1, NULL, | ||
| pos, found - pos); |
Member
There was a problem hiding this comment.
Am I correct in assuming that we already have code that handles \n for final responses? If yes, is the logic same as that for the final response? Is there a reason for not sharing the code?
Also, I believe that removing \n might be the correct solution here, see RFC 7230 section 3.2.4.
Contributor
Author
There was a problem hiding this comment.
Member
|
LGTM. |
Member
|
@i110 Do you have any open issues regarding this PR? If not, please merge, then compose a new PR that updates the documentation. Thank you in advance. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR does 2 things:
when: earlysend 103 response before dispatching to the next handlerenv['rack.early_hints']