From 3bdf0d75eca9ccff0b3661e9c39833f7bb97b095 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ionic=C4=83=20Biz=C4=83u?= Date: Thu, 12 Jun 2014 11:13:49 +0300 Subject: [PATCH] Use key variable instead of pathname --- lib/node-static.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/node-static.js b/lib/node-static.js index 1287115..3b0e8f0 100644 --- a/lib/node-static.js +++ b/lib/node-static.js @@ -269,7 +269,7 @@ Server.prototype.respondNoGzip = function (pathname, status, contentType, _heade } else { res.writeHead(status, headers); - this.stream(pathname, files, new(buffer.Buffer)(stat.size), res, function (e, buffer) { + this.stream(key, files, new(buffer.Buffer)(stat.size), res, function (e, buffer) { if (e) { return finish(500, {}) } finish(status, headers); });