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

fix: 304 status code return error #24

Merged
merged 1 commit into from
Jun 30, 2023
Merged

Conversation

Duslia
Copy link
Contributor

@Duslia Duslia commented Jun 30, 2023

What type of PR is this?

fix

What this PR does / why we need it (English/Chinese):

en: The error occurred with the 304 status code. The 304 status code is not considered an error per se, as it indicates that the requested resource has not been modified since the last request. However, in HTTP/2, the 304 status code is treated as an error in terms of handling, where it does not allow for a response body to be returned.
zh: 304 状态码返回了 error。304 状态码只是不允许返回 body,不是请求错误,但是在 h2 当中把 304 状态码当作错误处理了。

Which issue(s) this PR fixes:

wzekin
wzekin previously approved these changes Jun 30, 2023
@Duslia Duslia merged commit 06e557a into main Jun 30, 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

Successfully merging this pull request may close these issues.

2 participants