-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
storage: don't set the trivial "0-" Range header.
As per the RFC, the server has to response with 416 (Requested range not satisfiable) if there is not at least one matching byte. Specifying a range for the trivial case therefore prevents us reading zero-length objects. Fixes #242. Change-Id: Ic054411e03cf7e0a2c91b1de0879653e48bb451d Reviewed-on: https://code-review.googlesource.com/4562 Reviewed-by: Brad Fitzpatrick <[email protected]>
- Loading branch information
Showing
2 changed files
with
30 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