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

fix StaticHandler process http ranges header bug#143

Open
fznply wants to merge 2 commits into
vibora-io:v0.1.0from
fznply:v0.1.0-bug-static-handler
Open

fix StaticHandler process http ranges header bug#143
fznply wants to merge 2 commits into
vibora-io:v0.1.0from
fznply:v0.1.0-bug-static-handler

Conversation

@fznply

@fznply fznply commented Jul 16, 2018

Copy link
Copy Markdown

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
Copy Markdown
Contributor

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants