mirror of
https://github.com/kataras/iris.git
synced 2025-12-18 02:17:05 +00:00
fix https://github.com/kataras/iris/issues/1608 with the help of @AlbinoGeek for monitoring and together found the source of the problem
This commit is contained in:
@@ -121,6 +121,7 @@ func (repo *repository) register(route *Route, rule RouteRegisterRule) (*Route,
|
||||
var defaultOverlapFilter = func(ctx *context.Context) bool {
|
||||
if ctx.IsStopped() {
|
||||
// It's stopped and the response can be overridden by a new handler.
|
||||
// An exception of compress writer, which does not implement Reseter (and it shouldn't):
|
||||
rs, ok := ctx.ResponseWriter().(context.ResponseWriterReseter)
|
||||
return ok && rs.Reset()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user