Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

  • Loading branch information...
commit 044ae5ef30662933d1a7b769fb79175c3c38d753 1 parent e47309a
@astro astro authored
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');
Please sign in to comment.
Something went wrong with that request. Please try again.