1
0
mirror of https://github.com/kataras/iris.git synced 2025-12-17 18:07:01 +00:00
Former-commit-id: e83456ced3d00d6da3001d083e22a0568748298e
This commit is contained in:
Gerasimos (Makis) Maropoulos
2020-06-09 02:20:28 +03:00
parent 6d977dacd2
commit 46ff69e28e
4 changed files with 20 additions and 22 deletions

View File

@@ -64,9 +64,7 @@ func (h *Handler) AddRule(r rule.Rule) *Handler {
}
var emptyHandler = func(ctx context.Context) {
ctx.StatusCode(500)
ctx.WriteString("cache: empty body handler")
ctx.StopExecution()
ctx.StopWithText(500, "cache: empty body handler")
}
func parseLifeChanger(ctx context.Context) entry.LifeChanger {