node-easywechat 3.5.19 → 3.5.20
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/CHANGELOG.md +4 -0
- package/dist/Core/Http/ServerRequest.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -138,7 +138,7 @@ class ServerRequest {
|
|
|
138
138
|
static createFromIncomingMessage(req, body = null) {
|
|
139
139
|
return __awaiter(this, void 0, void 0, function* () {
|
|
140
140
|
let request = new ServerRequest(req.method, req.url, req.headers || {}, body, req.httpVersion);
|
|
141
|
-
if (!body) {
|
|
141
|
+
if (req.method.toUpperCase() === 'POST' && !body) {
|
|
142
142
|
let res = yield (0, raw_body_1.default)(req);
|
|
143
143
|
request.withBody(res);
|
|
144
144
|
}
|