Skip to content
New issue

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

Request to modify this place #1641

Closed
vijayasddd opened this issue Aug 26, 2023 · 1 comment
Closed

Request to modify this place #1641

vijayasddd opened this issue Aug 26, 2023 · 1 comment

Comments

@vijayasddd
Copy link

vijayasddd commented Aug 26, 2023

https://github.com/unjs/nitro/blob/61144e5b83fda418ca2b07e41427c6f782117089/src/runtime/static.ts#L79

The following send function is asynchronous. At this time, the code will not wait for the completion of the send, but will continue to go, and then the current res will be terminated by other tasks. When the res is completed, the send function will be executed. At this time, the send function will send a response again. It will report an error Cannot set headers after they are sent to the client nuxt

@pi0
Copy link
Member

pi0 commented Aug 26, 2023

#1639

@pi0 pi0 closed this as completed Aug 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants