Commit 10e14166 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Remove req argument from vcl_backend_fetch{}

parent 8410629b
......@@ -924,7 +924,7 @@ cnt_miss(struct worker *wrk, struct req *req)
http_SetHeader(bo->bereq, "Accept-Encoding: gzip");
}
VCL_backend_fetch_method(bo->vcl, wrk, req, bo, bo->bereq->ws);
VCL_backend_fetch_method(bo->vcl, wrk, NULL, bo, bo->bereq->ws);
VCL_miss_method(req->vcl, wrk, req, NULL, req->http->ws);
if (wrk->handling == VCL_RET_FETCH) {
......@@ -989,7 +989,7 @@ cnt_pass(struct worker *wrk, struct req *req)
HTTP_Setup(bo->bereq, bo->ws, bo->vsl, HTTP_Bereq);
http_FilterReq(req, HTTPH_R_PASS);
VCL_backend_fetch_method(bo->vcl, wrk, req, bo, bo->bereq->ws);
VCL_backend_fetch_method(bo->vcl, wrk, NULL, bo, bo->bereq->ws);
VCL_pass_method(bo->vcl, wrk, req, bo, bo->bereq->ws);
if (wrk->handling == VCL_RET_ERROR) {
......
......@@ -10,7 +10,7 @@ varnish v1 -vcl+backend {
set req.url = req.http.foo;
}
sub vcl_backend_fetch {
set bereq.url = req.http.foo;
set bereq.url = bereq.http.foo;
}
} -start
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment