Skip to content

Commit fa896f9

Browse files
committed
1 parent 72c0350 commit fa896f9

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "uwebsockets-express",
3-
"version": "1.4.1",
3+
"version": "1.4.2",
44
"description": "Express API compatibility layer for uWebSockets.js",
55
"main": "./build/index.js",
66
"module": "./build/index.mjs",

src/Application.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ export class Application extends EventEmitter {
5858
// read body data!
5959
if (req.headers['content-length']) {
6060
try {
61-
await req['readBody']();
61+
await req['_readBody']();
6262
} catch (e) {
6363
console.warn("uWebSockets-express: failed reading request body at", url);
6464
}

src/IncomingMessage.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ export class IncomingMessage extends EventEmitter implements http.IncomingMessag
161161
return this;
162162
}
163163

164-
protected readBody () {
164+
protected _readBody () {
165165
return new Promise<boolean>((resolve, reject) => {
166166
let body: Buffer;
167167

0 commit comments

Comments
 (0)