From 0178cc3873cd1cc590f88f67e48fe707eea18ab1 Mon Sep 17 00:00:00 2001 From: Amos Jeffries Date: Fri, 26 Jul 2013 06:32:07 -0600 Subject: [PATCH] Bug 2287: Better fix for unsupported HTTP version handling RFC 2616 section 10.5.6 is more specifically about MAJOR versions. Remove the criterion limiting 1.x minor version numbers. --- src/client_side.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/client_side.cc b/src/client_side.cc index 905eaae2d6..ff46ad8d8a 100644 --- a/src/client_side.cc +++ b/src/client_side.cc @@ -2609,10 +2609,9 @@ clientProcessRequest(ConnStateData *conn, HttpParser *hp, ClientSocketContext *c goto finish; } - /* RFC 2616 section 10.5.6 : handle unsupported HTTP versions cleanly. */ - /* We currently only accept 0.9, 1.0, 1.1 */ + /* RFC 2616 section 10.5.6 : handle unsupported HTTP major versions cleanly. */ + /* We currently only support 0.9, 1.0, 1.1 properly */ if ( (http_ver.major == 0 && http_ver.minor != 9) || - (http_ver.major == 1 && http_ver.minor > 1 ) || (http_ver.major > 1) ) { clientStreamNode *node = context->getClientReplyContext(); -- 2.47.2