Skip to content
Browse files

server: wait for form not request 'end' event on /upload

  • Loading branch information...
1 parent e47309a commit 044ae5ef30662933d1a7b769fb79175c3c38d753 @astro astro committed Feb 17, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 server.js
View
2 server.js
@@ -73,7 +73,7 @@ function app(app) {
};
form.parse(req, function(err, fields, files) { if (!error) error = err; });
- req.on('end', function() {
+ form.on('end', function() {
if (!out && !error)
error = new Error('No file received');

0 comments on commit 044ae5e

Please sign in to comment.
Something went wrong with that request. Please try again.