]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
[MAJOR] missing parenthesis prevented matching of cacheable cookies !
authorwilly tarreau <willy@wtap.(none)>
Sun, 21 May 2006 14:24:15 +0000 (16:24 +0200)
committerwilly tarreau <willy@wtap.(none)>
Sun, 21 May 2006 14:24:15 +0000 (16:24 +0200)
haproxy.c

index 6a5df0343d184bbc208d18191ebab6a634f17b4c..b2526ce03e12208eb0d2eab401072cb4f627b269 100644 (file)
--- a/haproxy.c
+++ b/haproxy.c
@@ -5739,7 +5739,7 @@ int process_srv(struct session *t) {
                         *    unless the response includes appropriate
                         *    Cache-Control or Expires header fields."
                         */
-                       if (!t->flags & SN_POST && (t->proxy->options & PR_O_CHK_CACHE))
+                       if (!(t->flags & SN_POST) && (t->proxy->options & PR_O_CHK_CACHE))
                                t->flags |= SN_CACHEABLE | SN_CACHE_COOK;
                        break;
                    default: