We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5c77bf2 commit 441ef39Copy full SHA for 441ef39
1 file changed
index.js
@@ -23,7 +23,7 @@ app.all('*', (req, res) => {
23
path: req.path,
24
headers: req.headers,
25
method: req.method,
26
- body: req.body,
+ body: JSON.parse(req.body === "" ? "{}" : req.body),
27
cookies: req.cookies,
28
fresh: req.fresh,
29
hostname: req.hostname,
0 commit comments