]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bug #1151: HEAD doesn't build with gcc 3.3.x
authorhno <>
Fri, 10 Dec 2004 07:55:15 +0000 (07:55 +0000)
committerhno <>
Fri, 10 Dec 2004 07:55:15 +0000 (07:55 +0000)
src/http.cc

index 8b6b9a7f846977e0b40ea5eccf3c038e63c1c364..acd26f1117846dc0039b23ca38446357d93a1269 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: http.cc,v 1.436 2004/12/08 00:24:42 hno Exp $
+ * $Id: http.cc,v 1.437 2004/12/10 00:55:15 hno Exp $
  *
  * DEBUG: section 11    Hypertext Transfer Protocol (HTTP)
  * AUTHOR: Harvest Derived
@@ -988,7 +988,7 @@ HttpStateData::readReply (int fd, char *readBuf, size_t len, comm_err_t flag, in
              */
             /* doesn't return */
             processReplyHeader(buf, len);
-        else if (entry->getReply()->sline.status == HTTP_INVALID_HEADER && HttpVersion(0,9) != entry->getReply()->sline.version) {
+        else if (entry->getReply()->sline.status == HTTP_INVALID_HEADER && !(HttpVersion(0,9) == entry->getReply()->sline.version)) {
             ErrorState *err;
             err = errorCon(ERR_INVALID_REQ, HTTP_BAD_GATEWAY);
             err->request = requestLink((HttpRequest *) request);
@@ -1007,7 +1007,7 @@ HttpStateData::readReply (int fd, char *readBuf, size_t len, comm_err_t flag, in
                 http_status s = entry->getReply()->sline.status;
                 HttpVersion httpver = entry->getReply()->sline.version;
 
-                if (s == HTTP_INVALID_HEADER && httpver != HttpVersion(0,9)) {
+                if (s == HTTP_INVALID_HEADER && !(httpver == HttpVersion(0,9))) {
                     ErrorState *err;
                     storeEntryReset(entry);
                     err = errorCon(ERR_INVALID_REQ, HTTP_BAD_GATEWAY);