From 6a73961e6c08f92636565253a156ef7a8047c1dd Mon Sep 17 00:00:00 2001 From: phk Date: Thu, 5 Jul 2007 08:42:08 +0000 Subject: [PATCH] Make varnishd actually work again after my last commit: Forgot to adjust default VCL git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1644 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- varnish-cache/bin/varnishd/cache_vrt.c | 6 ++++++ varnish-cache/bin/varnishd/mgt_vcc.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/varnish-cache/bin/varnishd/cache_vrt.c b/varnish-cache/bin/varnishd/cache_vrt.c index a7ad1a83..9ceecca9 100644 --- a/varnish-cache/bin/varnishd/cache_vrt.c +++ b/varnish-cache/bin/varnishd/cache_vrt.c @@ -81,7 +81,13 @@ VRT_GetHdr(struct sess *sp, enum gethdr_e where, const char *n) case HDR_REQ: hp = sp->http; break; + case HDR_BEREQ: + hp = sp->bereq->http; + break; case HDR_RESP: + hp = sp->http; + break; + case HDR_OBJ: hp = &sp->obj->http; break; default: diff --git a/varnish-cache/bin/varnishd/mgt_vcc.c b/varnish-cache/bin/varnishd/mgt_vcc.c index abb77c57..ab5b9663 100644 --- a/varnish-cache/bin/varnishd/mgt_vcc.c +++ b/varnish-cache/bin/varnishd/mgt_vcc.c @@ -122,7 +122,7 @@ static const char *default_vcl = " if (!obj.cacheable) {\n" " pass;\n" " }\n" - " if (resp.http.Set-Cookie) {\n" + " if (obj.http.Set-Cookie) {\n" " pass;\n" " }\n" " insert;\n" -- 2.39.5