Permalink
Browse files

Initialise array before parsing headers, otherwise will throw after h…

…eader error
  • Loading branch information...
1 parent 5665535 commit 85e4209a3d80c6fa12c63dc13751edbca0900437 @OrangeDog OrangeDog committed Jul 25, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/incoming_form.js
View
@@ -88,8 +88,8 @@ IncomingForm.prototype.parse = function(req, cb) {
return true;
};
- this.writeHeaders(req.headers);
this.openedFiles = [];
+ this.writeHeaders(req.headers);
var self = this;
req

0 comments on commit 85e4209

Please sign in to comment.