Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
varnish-cache
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
varnishcache
varnish-cache
Commits
e9f74434
Commit
e9f74434
authored
Sep 15, 2015
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make esi-delivery responsible for its own header-mungings.
parent
32dc0fba
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
cache_esi_deliver.c
bin/varnishd/cache/cache_esi_deliver.c
+3
-0
cache_req_fsm.c
bin/varnishd/cache/cache_req_fsm.c
+0
-2
No files found.
bin/varnishd/cache/cache_esi_deliver.c
View file @
e9f74434
...
...
@@ -237,6 +237,9 @@ VDP_ESI(struct req *req, enum vdp_action act, void **priv,
AN
(
ecx
);
ecx
->
preq
=
req
;
*
priv
=
ecx
;
RFC2616_Weaken_Etag
(
req
->
resp
);
if
(
req
->
resp_len
!=
0
)
req
->
resp_len
=
-
1
;
return
(
0
);
}
CAST_OBJ_NOTNULL
(
ecx
,
*
priv
,
ECX_MAGIC
);
...
...
bin/varnishd/cache/cache_req_fsm.c
View file @
e9f74434
...
...
@@ -79,8 +79,6 @@ cnt_vdp(struct req *req, struct busyobj *bo)
if
(
!
req
->
disable_esi
&&
req
->
resp_len
!=
0
&&
wantbody
&&
ObjGetattr
(
req
->
wrk
,
req
->
objcore
,
OA_ESIDATA
,
NULL
)
!=
NULL
)
{
req
->
res_mode
|=
RES_ESI
;
RFC2616_Weaken_Etag
(
req
->
resp
);
req
->
resp_len
=
-
1
;
VDP_push
(
req
,
VDP_ESI
,
NULL
,
0
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment