Added Content-Type and Content-Length to firmware downloads
This commit is contained in:
1 parent
b01cc55cda
commit
c91616c914
1 file changed
+1
-1
+1
-1
@@ -35,7 +35,7 @@ else
|
|||||||
response.end()
|
response.end()
|
||||||
return
|
return
|
||||||
stream = gs.stream(true)
|
stream = gs.stream(true)
|
||||||
response.writeHead(200)
|
response.writeHead(200, {'Content-Type' : 'application/octet-stream', 'Content-Length' : gs.length})
|
||||||
stream.pipe(response)
|
stream.pipe(response)
|
||||||
)
|
)
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in new issue
Block a user