mirror of
https://github.com/kataras/iris.git
synced 2025-12-17 18:07:01 +00:00
fix https://github.com/kataras/iris/issues/1713 and add a simple usage example of the 'RemoveHandler'
This commit is contained in:
@@ -1210,7 +1210,7 @@ func (api *APIBuilder) RemoveHandler(namesOrHandlers ...interface{}) Party {
|
||||
switch h := nameOrHandler.(type) {
|
||||
case string:
|
||||
handlerName = h
|
||||
case context.Handler:
|
||||
case context.Handler, func(*context.Context):
|
||||
handlerName = context.HandlerName(h)
|
||||
case *int:
|
||||
counter = h
|
||||
|
||||
Reference in New Issue
Block a user