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

gin middleware context.Abort() support #926

Closed

Conversation

re-cheid
Copy link

When registering middleware functions in gin calling c.Abort() on the gin context prevents execution of any follow up middleware functions as well as the endpoint service function.

Registering middleware functions in oapi-codegen generated gin-wrappers does not handle aborted contextst and executes all following middleware functions and the routed endpoint service function.

resolves #485

@re-cheid
Copy link
Author

seems this has been stealth fixed in #914

@re-cheid re-cheid closed this Jan 18, 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.

gin: included middleware cannot abort request
1 participant