Skip to content
This repository has been archived by the owner on Oct 8, 2023. It is now read-only.

fix StaticHandler process http ranges header bug #143

Open
wants to merge 2 commits into
base: v0.1.0
Choose a base branch
from

Conversation

fznply
Copy link

@fznply fznply commented Jul 16, 2018

support ranges as below:
Range: bytes=0-499 // from 0 to 499, total 500 bytes
Range: bytes=-500 // the last 500 bytes
Range: bytes=500- // from 500th to the last, include the last byte
Range: bytes=500-500 // the 500th, total 1 byte

fix end_pos
Content-Range: bytes {start_pos}-{end_pos}/{total_length} // end_pos <= total_length -1

@danieldaeschle
Copy link
Contributor

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
2 participants