From c91616c9149a8f9276e2e4ff32172c34773693fb Mon Sep 17 00:00:00 2001 From: Zaid Abdulla Date: Fri, 24 May 2013 12:18:33 +0300 Subject: [PATCH] Added Content-Type and Content-Length to firmware downloads --- files.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files.coffee b/files.coffee index 71d9740..bcdb588 100644 --- a/files.coffee +++ b/files.coffee @@ -35,7 +35,7 @@ else response.end() return stream = gs.stream(true) - response.writeHead(200) + response.writeHead(200, {'Content-Type' : 'application/octet-stream', 'Content-Length' : gs.length}) stream.pipe(response) ) else