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

ctx.body 赋值为null后,后面再赋值返回给前端依然失效,中间件拦截也是 #4916

Closed
oneplusonecy opened this issue Mar 30, 2022 · 4 comments

Comments

@oneplusonecy
Copy link

ctx.body 赋值为null后,后面再赋值返回给前端依然失效,中间件拦截也是

ctx.body = null;
ctx.body = "hello world";

api返回的结果依然是null;

@darrenliuwei
Copy link

一次请求,应该只能返回一次结果给前端吧?

@atian25
Copy link
Member

atian25 commented Apr 1, 2022

提供最小可复现仓库

@egg-bot
Copy link

egg-bot commented Apr 1, 2022

Hello @oneplusonecy. Please provide a reproducible example following the instruction.

Issues labeled by Need Reproduce will be closed if no activities in 7 days.


@oneplusonecy,请根据这个说明提供最小可复现代码。

如果在 7 天内没有进展会被自动关闭。

@egg-bot
Copy link

egg-bot commented Apr 9, 2022

This issue is closed because it has been marked as Need Reproduce, but has not had recent activity.
If you can provide a reproduce, feel free to ping anyone of our maintainers to reopen this issue.
Thank you for your contributions.

@egg-bot egg-bot closed this as completed Apr 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants