Skip to content
Browse files

woops check for null

  • Loading branch information...
1 parent 8253f02 commit 74da0af721ac3971a6a4601019bdceb6468edcad @cloudshift committed Feb 27, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 cloudshift/http/HttpImpl.hx
View
3 cloudshift/http/HttpImpl.hx
@@ -170,7 +170,8 @@ class HttpImpl implements HttpServer,implements Part<HostPort,HttpServer,HttpEve
})
.on('end', function() {
var
- fls = (files.length > 0) ? Some(files) : None;
+ fls = (files != null && files.length > 0) ? Some(files) : None;
+
cb(fields,fls);
});
form.parse(req);

0 comments on commit 74da0af

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