Skip to content

Commit

Permalink
Update incoming_form.js
Browse files Browse the repository at this point in the history
  • Loading branch information
GrosSacASac committed Dec 18, 2019
1 parent c4f8d7b commit dd4a9d5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/incoming_form.js
Original file line number Diff line number Diff line change
Expand Up @@ -464,9 +464,9 @@ IncomingForm.prototype._initUrlencoded = function() {

var parser = new QuerystringParser(this.maxFields);

parser.onField = (key, val) => {
this.emit('field', key, val);
};
parser.on('data', ({key, value}) => {
this.emit('field', key, value);
});

parser.onEnd = () => {
this.ended = true;
Expand Down

0 comments on commit dd4a9d5

Please sign in to comment.