Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(247)

Unified Diff: net/spdy/chromium/spdy_test_util_common.cc

Issue 2943113002: Reset pushed stream unless using GET or HEAD method. (Closed)
Patch Set: Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/spdy/chromium/spdy_session_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/spdy/chromium/spdy_test_util_common.cc
diff --git a/net/spdy/chromium/spdy_test_util_common.cc b/net/spdy/chromium/spdy_test_util_common.cc
index 9cefe6b8d6482b451564dc8214352fb53b765c2d..9da3d1cda80d4cc507a376c66530ffb7eefb5005 100644
--- a/net/spdy/chromium/spdy_test_util_common.cc
+++ b/net/spdy/chromium/spdy_test_util_common.cc
@@ -873,6 +873,7 @@ SpdySerializedFrame SpdyTestUtil::ConstructSpdyPush(
int associated_stream_id,
const char* url) {
SpdyHeaderBlock push_promise_header_block;
+ push_promise_header_block[GetMethodKey()] = "GET";
AddUrlToHeaderBlock(url, &push_promise_header_block);
SpdyPushPromiseIR push_promise(associated_stream_id, stream_id,
std::move(push_promise_header_block));
@@ -899,6 +900,7 @@ SpdySerializedFrame SpdyTestUtil::ConstructSpdyPush(
const char* status,
const char* location) {
SpdyHeaderBlock push_promise_header_block;
+ push_promise_header_block[GetMethodKey()] = "GET";
AddUrlToHeaderBlock(url, &push_promise_header_block);
SpdyPushPromiseIR push_promise(associated_stream_id, stream_id,
std::move(push_promise_header_block));
« no previous file with comments | « net/spdy/chromium/spdy_session_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698