Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ignore 0 Content-Lengths in 204 responses
Broken implementations do it contrary to what the RFC mandates. Fixes #1826.
- Loading branch information
Showing
2 changed files
with
17 additions
and
1 deletion.
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,15 @@ | ||
varnishtest "Check we ignore a zero C-L with a 204" | ||
|
||
server s1 { | ||
rxreq | ||
txresp -status 204 -nolen -hdr "Content-Length: 0" | ||
} -start | ||
|
||
varnish v1 -vcl+backend { | ||
} -start | ||
|
||
client c1 { | ||
txreq | ||
rxresp | ||
expect resp.status == 204 | ||
} -run |