ultimate-express 2.0.10 → 2.0.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +4 -2
- package/src/request.js +4 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ultimate-express",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.11",
|
|
4
4
|
"description": "The Ultimate Express. Fastest http server with full Express compatibility, based on uWebSockets.",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
"statuses": "^2.0.2",
|
|
63
63
|
"tseep": "^1.3.1",
|
|
64
64
|
"type-is": "^2.0.1",
|
|
65
|
-
"uWebSockets.js": "github:uNetworking/uWebSockets.js#v20.
|
|
65
|
+
"uWebSockets.js": "github:uNetworking/uWebSockets.js#v20.53.0",
|
|
66
66
|
"vary": "^1.1.2"
|
|
67
67
|
},
|
|
68
68
|
"devDependencies": {
|
|
@@ -83,12 +83,14 @@
|
|
|
83
83
|
"express-dot-engine": "^1.0.8",
|
|
84
84
|
"express-fileupload": "^1.5.2",
|
|
85
85
|
"express-handlebars": "^8.0.3",
|
|
86
|
+
"express-http-proxy": "^2.1.2",
|
|
86
87
|
"express-mongo-sanitize": "^2.2.0",
|
|
87
88
|
"express-rate-limit": "^8.0.1",
|
|
88
89
|
"express-session": "^1.18.2",
|
|
89
90
|
"express-subdomain": "^1.0.6",
|
|
90
91
|
"graphql-http": "^1.22.4",
|
|
91
92
|
"helmet": "^8.1.0",
|
|
93
|
+
"http-proxy-middleware": "^3.0.5",
|
|
92
94
|
"method-override": "^3.0.0",
|
|
93
95
|
"morgan": "^1.10.1",
|
|
94
96
|
"multer": "^1.4.5-lts.2",
|
package/src/request.js
CHANGED
|
@@ -113,6 +113,10 @@ module.exports = class Request extends Readable {
|
|
|
113
113
|
});
|
|
114
114
|
} else {
|
|
115
115
|
this.receivedData = true;
|
|
116
|
+
// For GET and other non-body methods, initialize bufferedData as empty buffer
|
|
117
|
+
// to ensure pipe() works correctly
|
|
118
|
+
this.#bufferedData = Buffer.allocUnsafe(0);
|
|
119
|
+
this.#doneReadingData = true;
|
|
116
120
|
}
|
|
117
121
|
}
|
|
118
122
|
|