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

Unified Diff: net/http/http_response_headers.h

Issue 251213004: HttpServer: avoid DCHECK'ing on non-HTTP/1.1 requests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rm spurious nl Created 6 years, 8 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 | « no previous file | net/http/http_response_headers.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/http_response_headers.h
diff --git a/net/http/http_response_headers.h b/net/http/http_response_headers.h
index 2bf4514bdc904b0397cca538ee8fc9893eede311..90ba7ebfe47849168e78f5650fb9310163305e43 100644
--- a/net/http/http_response_headers.h
+++ b/net/http/http_response_headers.h
@@ -335,14 +335,6 @@ class NET_EXPORT HttpResponseHeaders
// Initializes from the given raw headers.
void Parse(const std::string& raw_input);
- // Helper function for ParseStatusLine.
- // Tries to extract the "HTTP/X.Y" from a status line formatted like:
- // HTTP/1.1 200 OK
- // with line_begin and end pointing at the begin and end of this line. If the
- // status line is malformed, returns HttpVersion(0,0).
- static HttpVersion ParseVersion(std::string::const_iterator line_begin,
- std::string::const_iterator line_end);
-
// Tries to extract the status line from a header block, given the first
// line of said header block. If the status line is malformed, we'll
// construct a valid one. Example input:
« no previous file with comments | « no previous file | net/http/http_response_headers.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698