1
0
mirror of https://github.com/kataras/iris.git synced 2026-01-05 19:27:05 +00:00

fix https://github.com/kataras/iris/issues/1485 by adding and using the new 'context.UpsertCookie' instead of 'context.SetCookie'

Former-commit-id: 31a50e580929616504b9bbbb1d602b0e9274a568
This commit is contained in:
Gerasimos (Makis) Maropoulos
2020-04-13 09:27:49 +03:00
parent e1d3cad905
commit 989ac436e8
4 changed files with 56 additions and 7 deletions

View File

@@ -169,6 +169,7 @@ Other Improvements:
New Context Methods:
- `context.UpsertCookie(*http.Cookie, cookieOptions ...context.CookieOption)` upserts a cookie, fixes [#1485](https://github.com/kataras/iris/issues/1485) too
- `context.StopWithStatus(int)` stops the handlers chain and writes the status code
- `context.StopWithJSON(int, interface{})` stops the handlers chain, writes the status code and sends a JSON response
- `context.StopWithProblem(int, iris.Problem)` stops the handlers, writes the status code and sends an `application/problem+json` response