From b0a72982b50cf6eef619bbdb0d81e76ece78bd6c Mon Sep 17 00:00:00 2001 From: cel Date: Fri, 24 Mar 2017 10:33:39 -0400 Subject: Prevent auto download of blobs --- lib/serve.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/serve.js b/lib/serve.js index cb100ac..b24b9ae 100644 --- a/lib/serve.js +++ b/lib/serve.js @@ -517,7 +517,7 @@ Serve.prototype.blob = function (id) { type = type && mime.lookup(type) if (type) self.res.setHeader('Content-Type', type) if (self.query.name) self.res.setHeader('Content-Disposition', - 'attachment; filename='+encodeDispositionFilename(self.query.name)) + 'inline; filename='+encodeDispositionFilename(self.query.name)) self.res.setHeader('Cache-Control', 'public, max-age=315360000') self.res.setHeader('etag', id) self.res.writeHead(200) -- cgit v1.2.3