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 empty response redirect issue introduced by https://github.com/romsar/gonertia/pull/14 #15

Merged
merged 1 commit into from
Sep 25, 2024

Conversation

the-goodies
Copy link
Contributor

Move defer i.copyWrapperResponse(w, w2) before empty response check and remove an early return after i.Back, so that PUT, PATCH or DELETE requests with empty 200 response will get a correct http.StatusSeeOther response status redirect instead of a default http.StatusFound.

… and remove an early return after i.Back, so that PUT, PATCH or DELETE requests with an empty 200 responses will get a correct http.StatusSeeOther response status instead of default http.StatusFound.
@romsar romsar merged commit 450d363 into romsar:master Sep 25, 2024
1 check passed
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