Compare commits

..

1 Commits

Author SHA1 Message Date
yutent 7f6e506f4a fixed UrlencodedParser 2024-08-12 11:30:54 +08:00
2 changed files with 5 additions and 1 deletions

View File

@ -278,6 +278,10 @@ export default class IncomingForm extends EventEmitter {
#createUrlencodedParser() {
this.#parser = new UrlencodedParser()
if (this.bytesExpected) {
this.#parser.initLength(this.bytesExpected)
}
this.#parser
.on('field', fields => this.emit('field', false, fields))
.on('end', () => this.#handleEnd())

View File

@ -1,6 +1,6 @@
{
"name": "@gm5/request",
"version": "2.0.6",
"version": "2.0.7",
"description": "对Http的Request进一步封装, 提供常用的API",
"main": "index.js",
"author": "yutent",