Skip to content

gin middleware context.Abort() support#926

Closed
re-cheid wants to merge 2 commits intooapi-codegen:masterfrom
re-cheid:gin-middleware-abort-support
Closed

gin middleware context.Abort() support#926
re-cheid wants to merge 2 commits intooapi-codegen:masterfrom
re-cheid:gin-middleware-abort-support

Conversation

@re-cheid
Copy link
Copy Markdown

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
Copy Markdown
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