1
0
mirror of https://github.com/kataras/iris.git synced 2025-12-17 18:07:01 +00:00
This commit is contained in:
Gerasimos (Makis) Maropoulos
2016-12-22 19:07:03 +02:00
parent 1f25e4335a
commit fe79fdea44
4 changed files with 32 additions and 8 deletions

View File

@@ -1772,7 +1772,7 @@ func (api *muxAPI) StaticHandler(systemPath string, stripSlashes int, compress b
if errCode == StatusNotFound || errCode == StatusBadRequest || errCode == StatusInternalServerError {
api.mux.fireError(errCode, ctx)
}
if ctx.Pos < uint8(len(ctx.Middleware))-1 {
if ctx.Pos < len(ctx.Middleware)-1 {
ctx.Next() // for any case
}