Skip to content

Allow middleware to stop request handling#5

Open
chaporgin wants to merge 1 commit intoturtlemonvh:masterfrom
chaporgin:patch-1
Open

Allow middleware to stop request handling#5
chaporgin wants to merge 1 commit intoturtlemonvh:masterfrom
chaporgin:patch-1

Conversation

@chaporgin
Copy link

When a middleware like rs/cors does not want pass control to the next in the chain, we need to explicitly instruct gin to stop the chain by calling Abort.

When a middleware like [rs/cors](https://github.com/rs/cors/blob/fcebdb403f4d4585c705318c0e4d6d05a761a4ab/cors.go#L228-L231) does not want pass control to the next in the chain, we need to explicitly instruct gin to stop the chain by calling Abort.
@chaporgin
Copy link
Author

@turtlemonvh can you have a look?

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.

1 participant