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

Unified Diff: net/spdy/spdy_test_util_common.cc

Issue 1637033002: Remove HTTP/2 status text from SpdyTestUtil. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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/spdy_network_transaction_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/spdy_test_util_common.cc
diff --git a/net/spdy/spdy_test_util_common.cc b/net/spdy/spdy_test_util_common.cc
index f7022f5aa6d127948b1a9fecb801edb8ada30279..48ce6956bac95be2414d7f9fc095072d08c1b522 100644
--- a/net/spdy/spdy_test_util_common.cc
+++ b/net/spdy/spdy_test_util_common.cc
@@ -981,7 +981,7 @@ SpdyFrame* SpdyTestUtil::ConstructSpdyPush(const char* const extra_headers[],
SpdySynStreamIR syn_stream(stream_id);
syn_stream.set_associated_to_stream_id(associated_stream_id);
syn_stream.SetHeader("hello", "bye");
- syn_stream.SetHeader(GetStatusKey(), "200 OK");
+ syn_stream.SetHeader(GetStatusKey(), "200");
syn_stream.SetHeader(GetVersionKey(), "HTTP/1.1");
AddUrlToHeaderBlock(url, syn_stream.mutable_header_block());
AppendToHeaderBlock(extra_headers, extra_header_count,
@@ -994,7 +994,7 @@ SpdyFrame* SpdyTestUtil::ConstructSpdyPush(const char* const extra_headers[],
CreateFramer(false)->SerializeFrame(push_promise));
SpdyHeadersIR headers(stream_id);
- headers.SetHeader(GetStatusKey(), "200 OK");
+ headers.SetHeader(GetStatusKey(), "200");
headers.SetHeader("hello", "bye");
AppendToHeaderBlock(extra_headers, extra_header_count,
headers.mutable_header_block());
@@ -1080,7 +1080,7 @@ SpdyFrame* SpdyTestUtil::ConstructSpdyPushHeaders(
const char* const extra_headers[],
int extra_header_count) {
SpdyHeadersIR headers(stream_id);
- headers.SetHeader(GetStatusKey(), "200 OK");
+ headers.SetHeader(GetStatusKey(), "200");
MaybeAddVersionHeader(&headers);
AppendToHeaderBlock(extra_headers, extra_header_count,
headers.mutable_header_block());
« no previous file with comments | « net/spdy/spdy_network_transaction_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698