-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix HEAD requests for static content (#4813)
* Fix HEAD requests for static content FileResponse directly injects the response into the socket with sendfile() (if it can), which bypasses the checks in Response that prevent any content being sent for HEAD requests and for 204 (No Content) and 304 (Not Modified) responses. I've duplicated that logic into FileResponse. I'm not sure if the status checks are actually applicable (since StaticResource already has its own handling for Not Modified) and I don't currently have any tests for them. Closes #4809.
- Loading branch information
Showing
4 changed files
with
33 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Fix HEAD requests for static content. |
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 |
---|---|---|
|
@@ -52,6 +52,7 @@ Boyi Chen | |
Brett Cannon | ||
Brian C. Lane | ||
Brian Muller | ||
Bruce Merry | ||
Bryan Kok | ||
Bryce Drennan | ||
Carl George | ||
|
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