index: allow Range request
This commit is contained in:
parent
321d86d215
commit
0321c50209
|
@ -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'
|
||||
|
||||
|
|
Loading…
Reference in New Issue