We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d029858 commit be148b6Copy full SHA for be148b6
1 file changed
index.js
@@ -70,8 +70,8 @@ app.all('*', (req, res) => {
70
71
if (process.env.ECHO_BACK_TO_CLIENT != undefined && process.env.ECHO_BACK_TO_CLIENT == "false"){
72
res.end();
73
- } else if ("raw_response" in req.query && req.query["raw_response"] == "true") {
74
- res.send(Buffer.from(req.body));
+ } else if ("response_body_only" in req.query && req.query["response_body_only"] == "true") {
+ res.send(req.body);
75
} else {
76
res.json(echo);
77
}
0 commit comments