We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
/** fastify web framework */ const fastify: FrameworkAdapter = (req, reply) => ({ update: Promise.resolve(req.body), header: req.headers[SECRET_HEADER_LOWERCASE], end: () => reply.status(200).send(), respond: (json) => reply.send(json), unauthorized: () => reply.code(401).send(WRONG_TOKEN_ERROR), });
instead of respond: (json) => reply.send(json) it should be respond: (json) => reply.headers({'content-type': 'application/json'}).send(json)
respond: (json) => reply.send(json)
respond: (json) => reply.headers({'content-type': 'application/json'}).send(json)
The text was updated successfully, but these errors were encountered:
I'm surprised that nobody discovered this earlier, thanks for reporting. Could you review #541 and approve it if it is correct?
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
instead of
respond: (json) => reply.send(json)
it should berespond: (json) => reply.headers({'content-type': 'application/json'}).send(json)
The text was updated successfully, but these errors were encountered: