Added Content-Type and Content-Length to firmware downloads

This commit is contained in:
Zaid Abdulla committed 2013-05-24 12:18:33 +03:00
1 parent b01cc55cda
commit c91616c914
1 file changed
+1 -1
+1 -1
View File
@@ -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