aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/serve.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/serve.js b/lib/serve.js
index d557e10..5736f9b 100644
--- a/lib/serve.js
+++ b/lib/serve.js
@@ -1572,9 +1572,9 @@ Serve.prototype.blob = function (id, path) {
if (self.query.filename) self.res.setHeader('Content-Disposition',
'inline; filename='+encodeDispositionFilename(self.query.name))
if (self.query.gzip)
- res.setHeader('Content-Encoding', 'gzip')
+ self.res.setHeader('Content-Encoding', 'gzip')
if (self.query.contentType)
- res.setHeader('Content-Type', self.query.contentType)
+ self.res.setHeader('Content-Type', self.query.contentType)
self.res.setHeader('Cache-Control', 'public, max-age=315360000')
self.res.setHeader('etag', etag)
self.res.writeHead(200)
@@ -1658,9 +1658,9 @@ Serve.prototype.image = function (path) {
if (self.query.filename) self.res.setHeader('Content-Disposition',
'inline; filename='+encodeDispositionFilename(self.query.name))
if (self.query.gzip)
- res.setHeader('Content-Encoding', 'gzip')
+ self.res.setHeader('Content-Encoding', 'gzip')
if (self.query.contentType)
- res.setHeader('Content-Type', self.query.contentType)
+ self.res.setHeader('Content-Type', self.query.contentType)
self.res.setHeader('Cache-Control', 'public, max-age=315360000')
self.res.setHeader('ETag', etag)
self.res.writeHead(200)