-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make body not respond to to_path to Rack::Files range requests
If the body responds to to_path, the server is allowed to serve the file at that path and ignore the body. That works well for most requests, but not for range requests, since the correct byte range won't be served. Work around this issue by using a separate body class for the partial content responses that does not respond to to_path, and the current body class for non-partial content responses. Fixes #1235
- Loading branch information
1 parent
5dd5911
commit 3936b90
Showing
2 changed files
with
22 additions
and
11 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