/*
- * $Id: HttpVersion.h,v 1.2 2004/11/16 23:11:46 wessels Exp $
+ * $Id: HttpVersion.h,v 1.3 2004/12/11 22:07:31 hno Exp $
*
*
* SQUID Web Proxy Cache http://www.squid-cache.org/
return true;
}
+ bool operator!=(const HttpVersion& that) const
+ {
+ return ((this->major != that.major) || (this->minor != that.minor));
+ }
+
};
#endif /* SQUID_HTTPVERSION_H */
/*
- * $Id: http.cc,v 1.437 2004/12/10 00:55:15 hno Exp $
+ * $Id: http.cc,v 1.438 2004/12/11 22:07:31 hno Exp $
*
* DEBUG: section 11 Hypertext Transfer Protocol (HTTP)
* AUTHOR: Harvest Derived
*/
/* 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);
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);