index: allow Range request

This commit is contained in:
Peter Cai 2020-02-17 15:54:59 +08:00
parent 321d86d215
commit 0321c50209
No known key found for this signature in database
GPG Key ID: 71F5FB4E4F3FD54F
1 changed files with 1 additions and 0 deletions

View File

@ -87,6 +87,7 @@ handleGET = (req, file) ->
# Build response headers
headers =
'content-length': resp.headers.get 'content-length'
'accept-ranges': 'bytes'
# TODO: handle text/* with a code viewer of some sort
'content-type': resp.headers.get 'content-type'