1
0
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:
Gerasimos (Makis) Maropoulos
2020-08-28 06:21:26 +03:00
parent a6ec94e1a6
commit 4035ed308c
4 changed files with 17 additions and 0 deletions

View File

@@ -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()
}