aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2020-01-24 10:39:58 -0500
committercel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2020-01-24 10:39:58 -0500
commita36543131c127121355391b4c743f49b7280b2aa (patch)
tree8911cd8de2e67f6bde1ca03c3ae9d8d6499236d1
parent3012f12f83c367331dadc7912978870ec66e3d02 (diff)
downloadpatchfoo-a36543131c127121355391b4c743f49b7280b2aa.tar.gz
patchfoo-a36543131c127121355391b4c743f49b7280b2aa.zip
Fix typos
-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)