-
Notifications
You must be signed in to change notification settings - Fork 464
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
2023/05/19 20:21:07.463055 server.go:1928: [Error] HERTZ: HTTP2: write response body error when serving 123.123.123.123:63047: http: request method or response status code does not allow body #786
Comments
This issue has been marked as invalid question, please give more information by following the |
Please optimize the title to accurately reflect the gist of a problem, rather than being a log. |
Please give more information by following the issue template, help us better understand the problem. |
This issue has been marked as invalid question, please give more information by following the |
It seems to be an issue with the http2 repository. |
This issue has been marked as invalid question, please give more information by following the |
@rogerogers @Duslia try doing this, return this will get error with h2 usage.
|
oops, i think i should use ctx.Response.SetStatusCode(consts.StatusNotModified) right? :D is there a difference between |
@li-jin-gou @Duslia @rogerogers |
This issue has been marked as invalid question, please give more information by following the |
@Duslia , @li-jin-gou , @rogerogers
pls check. not sure how u would like to resolve this. maybe if status 304 (or all other statuses that does not have body) dont set body? pls help fix this. thx
|
This issue has been marked as invalid question, please give more information by following the |
This issue has been marked as invalid question, please give more information by following the |
Please follow the template and fill in the questions as others have done to help understand the questions and the issue will not be actively closed and refer to https://github.com/cloudwego/hertz/issues |
This issue has been marked as invalid question, please give more information by following the |
@li-jin-gou close this and reopened as you have suggested |
cannot set "consts.StatusNotModified"
how do set status not modified correctly?
using h2 and latest hertz.
how do i "delete" response body then? if the below is correct?
The text was updated successfully, but these errors were encountered: