Permalink
Browse files

bugfix

  • Loading branch information...
1 parent c417b9d commit a21405ce9a3baf4b2c247d4786fd25238fa4738a @jairajs89 committed Nov 3, 2012
Showing with 3 additions and 3 deletions.
  1. +1 −1 package.json
  2. +2 −2 zerver.js
View
@@ -2,7 +2,7 @@
"author": "Jairaj Sethi <j@jairaj.org> (http://jairaj.org/)",
"name": "zerver",
"description": "client-integrated webapp server",
- "version": "0.4.6",
+ "version": "0.4.7",
"repository": {
"type": "git",
"url": "git://github.com/jairajs89/zerver.git"
View
@@ -258,7 +258,7 @@ Handler.prototype.finishResponse = function (status, headers, data, isBinary, do
this.response.end();
}
- if (!dontCache && CACHE_ENABLED && !(pathname in inMemoryCache) && ((this.type === 'file') || (this.type === 'script'))) {
+ if (!dontCache && CACHE_ENABLED && !(this.pathname in inMemoryCache) && ((this.type === 'file') || (this.type === 'script'))) {
if ( Buffer.isBuffer(data) ) {
var str = '';
@@ -269,7 +269,7 @@ Handler.prototype.finishResponse = function (status, headers, data, isBinary, do
data = str;
}
- inMemoryCache[pathname] = {
+ inMemoryCache[this.pathname] = {
type : this.type ,
status : status ,
headers : headers ,

0 comments on commit a21405c

Please sign in to comment.