Commit e316a5fb authored by Martin Blix Grydeland's avatar Martin Blix Grydeland

Remove dodgy workaround introduced for #763.

With fix for #1275 we can now do a proper 503 when malformed
Vary-headers are received from backend. Error out instead of accepting
bogus ':'.
parent c394dfb7
......@@ -93,11 +93,6 @@ VRY_Create(struct req *req, const struct http *hp, struct vsb **psb)
sbh = VSB_new_auto();
AN(sbh);
if (*v == ':') {
VSLb(req->vsl, SLT_Error,
"Vary header had extra ':', fix backend");
v++;
}
for (p = v; *p; p++) {
/* Find next header-name */
......
......@@ -10,5 +10,5 @@ varnish v1 -vcl+backend {} -start
client c1 {
txreq
rxresp
expect resp.http.vary == ": foo"
expect resp.status == 503
} -run
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