commit | 5b1e4ce7d3be7e1239e23651abe17748e08db451 | [log] [tgz] |
---|---|---|
author | Bence Béky <bnc@chromium.org> | Thu Jan 11 14:55:15 2018 |
committer | Commit Bot <commit-bot@chromium.org> | Thu Jan 11 14:55:15 2018 |
tree | 50ab62e1520f5b25863eee6ec9515f7d7171c538 | |
parent | 55e85608a30e1c9e28339be2a324243ee654f8c3 [diff] |
Accept HEAD method for HTTP/2 push. Currently, SpdyHttpStream::Initialize() requires that method is GET for a request to be matched to a pushed stream, but SpdySession::TryCreatePushedStream() allows both GET and HEAD methods. This change removes the requirement from SpdyHttpStream::Initialize(), and changes SpdySession::ValidatePushedStream() to require that request method matches that of the pushed stream in ValidatePushedStream(). In order to do this, HttpRequestInfo is passed through ClaimPushedStream() to ValidatePushedStream(). This will be useful in subsequent CLs when the pushed request and response headers will be validated against the request headers. Bug: 554220 Change-Id: I37c502881a782b05e01c012dbb98352eb48fbed7 Reviewed-on: https://chromium-review.googlesource.com/860480 Reviewed-by: Helen Li <xunjieli@chromium.org> Commit-Queue: Bence Béky <bnc@chromium.org> Cr-Commit-Position: refs/heads/master@{#528622}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .