From 68c072485c72cbd9dc6602f6a8855c5cd144ed0a Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Tue, 16 Jul 2013 20:53:29 +0900 Subject: [PATCH] Remove :version existence check in spdyd --- src/SpdyServer.cc | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/SpdyServer.cc b/src/SpdyServer.cc index 60a5f7d4..0e3a2016 100644 --- a/src/SpdyServer.cc +++ b/src/SpdyServer.cc @@ -474,7 +474,6 @@ void prepare_response(Request *req, SpdyEventHandler *hd) bool url_found = false; bool method_found = false; bool scheme_found = false; - bool version_found = false; bool host_found = false; time_t last_mod = 0; bool last_mod_found = false; @@ -488,8 +487,6 @@ void prepare_response(Request *req, SpdyEventHandler *hd) method_found = true; } else if(field == ":scheme") { scheme_found = true; - } else if(field == ":version") { - version_found = true; } else if(field == ":host") { host_found = true; } else if(!last_mod_found && field == "if-modified-since") { @@ -497,8 +494,7 @@ void prepare_response(Request *req, SpdyEventHandler *hd) last_mod = util::parse_http_date(value); } } - if(!url_found || !method_found || !scheme_found || !version_found || - !host_found) { + if(!url_found || !method_found || !scheme_found || !host_found) { prepare_status_response(req, hd, STATUS_400); return; }