What to return when range HTTP header requests last byte of file? -
i need handle range header programatically in java supporting media files on ios.
if file 23843 bytes, example, i'm getting request range header:
range: bytes 23842-23842
what meant return in case? last byte of file?
you should send file offset 23842 offset 23842, yes, comes out 1 byte.
the spec gives similar example:
- the first , last bytes (bytes 0 , 9999): bytes=0-0,-1
(the important bit here being 0-0 = first byte
)
Comments
Post a Comment