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

Unified Diff: net/server/http_server.cc

Issue 265603002: Revert of HttpServer: avoid DCHECK'ing on non-HTTP/1.1 requests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 | « net/http/http_util.cc ('k') | net/server/http_server_request_info.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/server/http_server.cc
diff --git a/net/server/http_server.cc b/net/server/http_server.cc
index 20926e736680f88871146cf0e8741ec1fb6a3d9a..df77c3672daa423fe54127495aa18b7a4262a104 100644
--- a/net/server/http_server.cc
+++ b/net/server/http_server.cc
@@ -13,7 +13,6 @@
#include "base/sys_byteorder.h"
#include "build/build_config.h"
#include "net/base/net_errors.h"
-#include "net/http/http_util.h"
#include "net/server/http_connection.h"
#include "net/server/http_server_request_info.h"
#include "net/server/http_server_response_info.h"
@@ -283,10 +282,8 @@
buffer.clear();
break;
case ST_PROTO:
- if (!HttpUtil::ParseVersion(buffer, &info->http_version)) {
- // Treat everything else like HTTP 1.0
- info->http_version = HttpVersion(1, 0);
- }
+ // TODO(mbelshe): Deal better with parsing protocol.
+ DCHECK(buffer == "HTTP/1.1");
buffer.clear();
break;
case ST_NAME:
« no previous file with comments | « net/http/http_util.cc ('k') | net/server/http_server_request_info.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698