]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: proto_htx: Directly call htx_check_response_for_cacheability()
authorChristopher Faulet <cfaulet@haproxy.com>
Mon, 15 Jul 2019 20:26:28 +0000 (22:26 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 19 Jul 2019 07:18:27 +0000 (09:18 +0200)
Instead of using the HTTP legacy version.

src/proto_htx.c

index 620f81b75620b7fc877b70fca5af9a3d117912b9..2fd67f79f0763a6eb65a9df5c8a72e54cc20bf67 100644 (file)
@@ -1989,7 +1989,7 @@ int htx_process_res_common(struct stream *s, struct channel *rep, int an_bit, st
         * Check for cache-control or pragma headers if required.
         */
        if ((s->be->options & PR_O_CHK_CACHE) || (s->be->ck_opts & PR_CK_NOC))
-               check_response_for_cacheability(s, rep);
+               htx_check_response_for_cacheability(s, rep);
 
        /*
         * Add server cookie in the response if needed