diff options
author | cel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519> | 2017-03-24 10:33:39 -0400 |
---|---|---|
committer | cel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519> | 2017-03-24 10:36:35 -0400 |
commit | b0a72982b50cf6eef619bbdb0d81e76ece78bd6c (patch) | |
tree | e4e0eedf0ef9440631ffa9ee09ff09570d4eddeb /lib | |
parent | bdb52c0f6a94b0ad84ea2a756288feb3fe55a60d (diff) | |
download | patchfoo-b0a72982b50cf6eef619bbdb0d81e76ece78bd6c.tar.gz patchfoo-b0a72982b50cf6eef619bbdb0d81e76ece78bd6c.zip |
Prevent auto download of blobs
Diffstat (limited to 'lib')
-rw-r--r-- | lib/serve.js | 2 |
1 files changed, 1 insertions, 1 deletions
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) |