-
Notifications
You must be signed in to change notification settings - Fork 37
Open
Description
In this function:
http-types/Network/HTTP/Types/Header.hs
Line 166 in dda6874
| renderByteRangesBuilder :: ByteRanges -> Blaze.Builder |
The ByteRanges are render with an = sign. But according to section 14.16 of RFC2616:
https://www.ietf.org/rfc/rfc2616.txt
When rendering a byte range in a Content-Range header, there is no '=',
Content-Range = "Content-Range" ":" content-range-spec
content-range-spec = byte-content-range-spec
byte-content-range-spec = bytes-unit SP
byte-range-resp-spec "/"
( instance-length | "*" )
byte-range-resp-spec = (first-byte-pos "-" last-byte-pos)
| "*"
instance-length = 1*DIGIT
This is, of course, an = in the request. This seems like senseless inconsistency in the RFC itself.
Perhaps renderByteRanges is only intended to render the byte ranges in requests? And there should be a different function for rendering byte ranges in a response? Or I am misunderstanding something?
Metadata
Metadata
Assignees
Labels
No labels