Kamal Kumar
Kamal Kumar
I just checked. It's working fine. Their is no exception while running the application. Is it fixed?
Assign me. I am working on that. Will give it you in an hour. Because I have checked it and solve it.
I've opened a PR #6296 that addresses this behavior: now reply. send(string) will automatically serialize string payloads as JSON when the Content-Type is application/json. This means users no longer need...
This ensures a **reply.send(string)** automatically serializes strings as JSON when Content-Type is application/json. Previously, users had to manually JSON.stringify strings before sending. With this change, Fastify handles the serialization internally,...
The bug is fixed and tested. No need to update documentation. Will be tackled in reply.js.
It's fixing the problem of double stringify in any way.
I tested coverage on main (server.js and fastify/lib) and it’s already below 100%. Regarding the new logic I added: it introduces an inner if that only runs when the payload...