We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 161e265 commit c86855bCopy full SHA for c86855b
resources/config/varnish-4/fos_custom_ttl.vcl
@@ -23,9 +23,9 @@ sub fos_custom_ttl_backend_response {
23
* startup command.
24
*/
25
C{
26
- char *ttl;
27
- ttl = VRT_GetHdr(sp, HDR_BERESP, "\024X-Reverse-Proxy-TTL:");
28
- VRT_l_beresp_ttl(sp, atoi(ttl));
+ const struct gethdr_s hdr = { HDR_BERESP, "\024X-Reverse-Proxy-TTL:" };
+ ttl = VRT_GetHdr(ctx, &hdr);
+ VRT_l_beresp_ttl(ctx, atoi(ttl));
29
}C
30
31
unset beresp.http.X-Reverse-Proxy-TTL;
0 commit comments