Permalink
Browse files

fix global var leak

  • Loading branch information...
1 parent 2ccd56b commit 40019f63b4b30cb3108fed9c94ad4fb99b92c224 @aheckmann aheckmann committed Jan 31, 2011
Showing with 3 additions and 3 deletions.
  1. +3 −3 index.js
View
@@ -5,9 +5,9 @@ module.exports = function responseTimeout(options){
options.throwError = options.throwError || options.throwError === undefined;
return function responseTimeout(req, res, next){
- var writeHead = res.writeHead,
- at = req.method + ' ' + req.url
- timer = setTimeout(function(){
+ var writeHead = res.writeHead
+ , at = req.method + ' ' + req.url
+ , timer = setTimeout(function(){
if (options.throwError){
next(new Error('Timeout'));
} else {

0 comments on commit 40019f6

Please sign in to comment.