From a36543131c127121355391b4c743f49b7280b2aa Mon Sep 17 00:00:00 2001 From: cel Date: Fri, 24 Jan 2020 10:39:58 -0500 Subject: Fix typos --- lib/serve.js | 8 ++++---- 1 file 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) -- cgit v1.2.3