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

Unified Diff: net/base/net_error_list.h

Issue 15688012: net: don't process truncated headers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Only enforce this for HTTPS URLs. Created 7 years, 7 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
Index: net/base/net_error_list.h
diff --git a/net/base/net_error_list.h b/net/base/net_error_list.h
index fba8846a7abc748b4371ab6230294989e8f4ed91..fa68713f566d825489497b54811c0c9c6022fe73 100644
--- a/net/base/net_error_list.h
+++ b/net/base/net_error_list.h
@@ -536,6 +536,9 @@ NET_ERROR(INCOMPLETE_CHUNKED_ENCODING, -355)
// There is a QUIC protocol error.
NET_ERROR(QUIC_PROTOCOL_ERROR, -356)
+// The HTTP headers were truncated by an EOF.
+NET_ERROR(HEADERS_TRUNCATED, -357)
wtc 2013/05/30 00:38:30 I suggest renaming this RESPONSE_HEADERS_TRUNCATED
agl 2013/06/03 18:18:29 Will do.
+
// The cache does not have the requested entry.
NET_ERROR(CACHE_MISS, -400)
« no previous file with comments | « no previous file | net/http/http_proxy_client_socket_pool_spdy2_unittest.cc » ('j') | net/http/http_stream_parser.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698