Skip to content

Commit c86855b

Browse files
committed
use the correct varnish 4 config
1 parent 161e265 commit c86855b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

resources/config/varnish-4/fos_custom_ttl.vcl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ sub fos_custom_ttl_backend_response {
2323
* startup command.
2424
*/
2525
C{
26-
char *ttl;
27-
ttl = VRT_GetHdr(sp, HDR_BERESP, "\024X-Reverse-Proxy-TTL:");
28-
VRT_l_beresp_ttl(sp, atoi(ttl));
26+
const struct gethdr_s hdr = { HDR_BERESP, "\024X-Reverse-Proxy-TTL:" };
27+
ttl = VRT_GetHdr(ctx, &hdr);
28+
VRT_l_beresp_ttl(ctx, atoi(ttl));
2929
}C
3030

3131
unset beresp.http.X-Reverse-Proxy-TTL;

0 commit comments

Comments
 (0)