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

Unified Diff: net/spdy/spdy_framer.cc

Issue 2445113002: Add HTTP/2 error code NO_ERROR. (Closed)
Patch Set: Rebase. Created 4 years, 2 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/base/net_error_list.h ('k') | net/spdy/spdy_framer_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/spdy/spdy_framer.cc
diff --git a/net/spdy/spdy_framer.cc b/net/spdy/spdy_framer.cc
index ea96d206168f6b92685d7e094cdb6d7d0b95941a..c6f0e3f3b1973b0ef93fc16812dbd6f5c010746e 100644
--- a/net/spdy/spdy_framer.cc
+++ b/net/spdy/spdy_framer.cc
@@ -538,8 +538,8 @@ const char* SpdyFramer::ErrorCodeToString(int error_code) {
const char* SpdyFramer::StatusCodeToString(int status_code) {
switch (status_code) {
- case RST_STREAM_INVALID:
- return "INVALID";
+ case RST_STREAM_NO_ERROR:
+ return "NO_ERROR";
case RST_STREAM_PROTOCOL_ERROR:
return "PROTOCOL_ERROR";
case RST_STREAM_INVALID_STREAM:
@@ -2107,7 +2107,7 @@ size_t SpdyFramer::ProcessRstStreamFramePayload(const char* data, size_t len) {
DCHECK(successful_read);
}
- SpdyRstStreamStatus status = RST_STREAM_INVALID;
+ SpdyRstStreamStatus status = RST_STREAM_NO_ERROR;
uint32_t status_raw = status;
bool successful_read = reader.ReadUInt32(&status_raw);
DCHECK(successful_read);
« no previous file with comments | « net/base/net_error_list.h ('k') | net/spdy/spdy_framer_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698