-
Notifications
You must be signed in to change notification settings - Fork 366
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add all well-known headers to the perfect hash lookup table
This expands the perfect hash lookup table to be able to match any entry in the list of well-known headers from tbl/http_headers.h. Previously only the headers that had a non-zero filter flag section was kept in the fast match table. Fixes: VSV00010
- Loading branch information
1 parent
4770658
commit fcf5722
Showing
2 changed files
with
112 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
varnishtest "Do not allow critical headers to be marked hop-by-hop" | ||
|
||
varnish v1 -vcl { | ||
backend default none; | ||
} -start | ||
|
||
client c1 { | ||
txreq -hdr "Connection: Content-Length" -body "asdf" | ||
rxresp | ||
expect resp.status == 400 | ||
expect_close | ||
} -run | ||
|
||
client c2 { | ||
txreq -hdr "Connection: Host" | ||
rxresp | ||
expect resp.status == 400 | ||
expect_close | ||
} -run |