Browse files

Merge pull request #47 from malleor/master

Middleware's 304 handling fix
  • Loading branch information...
2 parents de2f73d + 1cb20ee commit 847de1b9ab00a07ef2946813ac65d13003096ad3 @nrstott committed Mar 5, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/middleware.js
View
4 lib/middleware.js
@@ -93,7 +93,9 @@ exports.gzip = exports.Gzip = function(nextApp) {
bogart.pump(resp.body, gzip);
- resp.body = toForEachable(gzip);
+ if(resp.status != 304) {
+ resp.body = toForEachable(gzip);
+ }
return resp;
});
} else {

0 comments on commit 847de1b

Please sign in to comment.