]> git.ipfire.org Git - thirdparty/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>
Mon, 26 Nov 2007 19:16:53 +0000 (20:16 +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 99bef1b2ce64d59265b902092067da8f26093c91..feed6ccf0257b499ca76258b40e3ab15d9d9dbe6 100644 (file)
@@ -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.