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.13.2~8 X-Git-Url: http://www.kaiwu.me/postgresql/commit/?a=commitdiff_plain;h=cdeeda9727a16ea0f76840b7a5cfad10b3ed8723;p=haproxy.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 a25f7b414..ab440d559 100644 --- a/src/proto_http.c +++ b/src/proto_http.c @@ -4481,7 +4481,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.