Skip to content

Commit

Permalink
Fix: fix end http request when parse payload data error
Browse files Browse the repository at this point in the history
  • Loading branch information
welefen committed Feb 22, 2016
1 parent 0f6b53f commit c7e7db9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/middleware/parse_form_payload.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ export default class extends think.middleware.base {
deferred.resolve(null);
});
form.on('error', err => {
http.req.resume();
http.res.statusCode = 400;
http.end();
//log error
Expand Down

0 comments on commit c7e7db9

Please sign in to comment.