aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/serve.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/serve.js b/lib/serve.js
index aad7159..d557e10 100644
--- a/lib/serve.js
+++ b/lib/serve.js
@@ -1569,7 +1569,7 @@ Serve.prototype.blob = function (id, path) {
// the ciphertext
if (typeof size === 'number' && !key)
self.res.setHeader('Content-Length', size)
- if (self.query.name) self.res.setHeader('Content-Disposition',
+ if (self.query.filename) self.res.setHeader('Content-Disposition',
'inline; filename='+encodeDispositionFilename(self.query.name))
if (self.query.gzip)
res.setHeader('Content-Encoding', 'gzip')
@@ -1655,7 +1655,7 @@ Serve.prototype.image = function (path) {
type = type && mime.lookup(type)
if (type) self.res.setHeader('Content-Type', type)
self.res.setHeader('Content-Length', data.length)
- if (self.query.name) self.res.setHeader('Content-Disposition',
+ if (self.query.filename) self.res.setHeader('Content-Disposition',
'inline; filename='+encodeDispositionFilename(self.query.name))
if (self.query.gzip)
res.setHeader('Content-Encoding', 'gzip')