@felloh-org/lambda-wrapper 1.11.52 → 1.11.54
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/dist/service/request.js +3 -1
- package/package.json +1 -1
package/dist/service/request.js
CHANGED
|
@@ -154,6 +154,7 @@ class Request extends _dependencyAware.default {
|
|
|
154
154
|
|
|
155
155
|
getAll(requestType = null) {
|
|
156
156
|
const event = this.getContainer().getEvent();
|
|
157
|
+
console.log(event);
|
|
157
158
|
|
|
158
159
|
if (HTTP_METHODS_WITHOUT_PAYLOADS.includes(event.httpMethod) || HTTP_METHODS_WITHOUT_PAYLOADS.includes(requestType)) {
|
|
159
160
|
// get simple parameters
|
|
@@ -167,8 +168,9 @@ class Request extends _dependencyAware.default {
|
|
|
167
168
|
}
|
|
168
169
|
|
|
169
170
|
if (HTTP_METHODS_WITH_PAYLOADS.includes(event.httpMethod) || HTTP_METHODS_WITH_PAYLOADS.includes(requestType)) {
|
|
170
|
-
const contentType = this.getHeader('Content-Type');
|
|
171
|
+
const contentType = this.getHeader('Content-Type', this.getHeader('content-type'));
|
|
171
172
|
let queryParameters = {};
|
|
173
|
+
console.log('content-type', contentType);
|
|
172
174
|
|
|
173
175
|
if (contentType.includes('application/x-www-form-urlencoded')) {
|
|
174
176
|
queryParameters = _querystring.default.parse(event.body);
|