Skip to content

Commit

Permalink
Update utils/build/docker/nodejs/express4/app.js
Browse files Browse the repository at this point in the history
  • Loading branch information
simon-id authored Oct 16, 2024
1 parent 48cfde5 commit c854ca7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/build/docker/nodejs/express4/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ app.all('/tag_value/:tag_value/:status_code', (req, res) => {

res.status(req.params.status_code || 200)

if (req.params?.tag_value?.startsWith?.('payload_in_response_body') && req.method === 'POST') {
if (req.params.tag_value.startsWith?.('payload_in_response_body') && req.method === 'POST') {
res.send({ payload: req.body })
} else {
res.send('Value tagged')
Expand Down

0 comments on commit c854ca7

Please sign in to comment.