Skip to content

Commit

Permalink
Merge pull request cloudhead#123 from IonicaBizau/patch-1
Browse files Browse the repository at this point in the history
Use key variable instead of pathname
  • Loading branch information
phstc committed Jun 12, 2014
2 parents 4c64f0c + 3bdf0d7 commit 7f655b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/node-static.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
Expand Down

0 comments on commit 7f655b1

Please sign in to comment.