Permalink
Browse files

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 ':'.
  • Loading branch information...
1 parent c394dfb commit e316a5fb72d67f3f3e64e4d73a9a423bf74c88ae @mbgrydeland mbgrydeland committed Mar 18, 2013
Showing with 1 addition and 6 deletions.
  1. +0 −5 bin/varnishd/cache/cache_vary.c
  2. +1 −1 bin/varnishtest/tests/r00763.vtc
@@ -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

0 comments on commit e316a5f

Please sign in to comment.