@cripty2001/utils 0.0.42 → 0.0.43
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/Appserver/server.js +2 -2
- package/package.json +1 -1
package/dist/Appserver/server.js
CHANGED
|
@@ -44,10 +44,10 @@ class Appserver {
|
|
|
44
44
|
throw new AppserverError('REQUEST_INVALID_TYPE_HEADER', 'Content-Type must be a messagepack (application/vnd.msgpack)', 400);
|
|
45
45
|
const data = (() => {
|
|
46
46
|
try {
|
|
47
|
-
return
|
|
47
|
+
return (0, msgpack_1.decode)(req.body);
|
|
48
48
|
}
|
|
49
49
|
catch {
|
|
50
|
-
throw new AppserverError('REQUEST_INVALID_BODY', 'Request body is not valid
|
|
50
|
+
throw new AppserverError('REQUEST_INVALID_BODY', 'Request body is not valid msgpack', 400);
|
|
51
51
|
}
|
|
52
52
|
})();
|
|
53
53
|
const authHeader = req.headers['authorization'];
|
package/package.json
CHANGED