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

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -