-
-
Notifications
You must be signed in to change notification settings - Fork 723
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Skip headers for Not Modified fs responses (#205)
According to RFC 7232, 304 Not Modified responses should not generate representation metadata other than the following fields: Cache-Control, Content-Location, Date, ETag, Expires, and Vary. This avoids a warning from hyper when logging is enabled: "content-length value found, but empty body provided". While it is allowed to provide Content-Length for Not Modified responses it is unnecessary.
- Loading branch information
1 parent
2407776
commit 4a1c67c
Showing
2 changed files
with
16 additions
and
14 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