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

Stop preparing the request if an error occurs #216

Merged
merged 1 commit into from Sep 9, 2021

Conversation

jkawamoto
Copy link
Contributor

request.buildHTTP closes the writer but keeps preparing the request if an error occurs. Since the writer is already closed, other following write operations also fail. This PR changes this behaviour so that the function returns earlier and stops the preparation.

This PR fixes #215.

request.buildHTTP closes the writer but keeps preparing the request if
an error occurs. Since the writer is already closed, other following
write operations also fail. This commit changes this behaviour so that
the function returns earlier and stop the preparation.

Signed-off-by: Junpei Kawamoto <kawamoto.junpei@gmail.com>
@casualjim casualjim merged commit 2bc043c into go-openapi:master Sep 9, 2021
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.

buildHTTP keeps preparing the request even if an error occurs
2 participants