Tuesday, 3 September 2013

What to return when range HTTP header requests last byte of file?

What to return when range HTTP header requests last byte of file?

I need to handle the Range header programatically in Java for supporting
media files on iOS.
If my file is 23843 bytes, for example, I'm getting a request with a range
header:
Range: bytes 23842-23842
What am I meant to return in this case? Is it just the last byte of the file?

No comments:

Post a Comment