From: Willy Tarreau Date: Sun, 25 Nov 2007 15:20:08 +0000 (+0100) Subject: [BUG] fix missing parenthesis in check_response_for_cacheability X-Git-Tag: v1.3.14~46 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5df518788dc85f7449cd31f17b6bbed667828236;p=thirdparty%2Fhaproxy.git [BUG] fix missing parenthesis in check_response_for_cacheability Parenthesis were missed when code was moved to this function. This results in non-cacheable transactions not being ignored. --- diff --git a/src/proto_http.c b/src/proto_http.c index 99bef1b2ce..feed6ccf02 100644 --- a/src/proto_http.c +++ b/src/proto_http.c @@ -4475,7 +4475,7 @@ void check_response_for_cacheability(struct session *t, struct buffer *rtr) char *cur_ptr, *cur_end, *cur_next; int cur_idx; - if (!txn->flags & TX_CACHEABLE) + if (!(txn->flags & TX_CACHEABLE)) return; /* Iterate through the headers.