]> git.kaiwu.me - haproxy.git/commitdiff
[BUG] fix missing parenthesis in check_response_for_cacheability
authorWilly Tarreau <w@1wt.eu>
Sun, 25 Nov 2007 15:20:08 +0000 (16:20 +0100)
committerWilly Tarreau <w@1wt.eu>
Sun, 20 Jan 2008 23:26:10 +0000 (00:26 +0100)
Parenthesis were missed when code was moved to this function.
This results in non-cacheable transactions not being ignored.

src/proto_http.c

index a25f7b414a754f5d10707e7f99b580cc4b7c4658..ab440d5593aa7e97a438e90b2838da83e90e1f1e 100644 (file)
@@ -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.