1
0
mirror of https://github.com/kataras/iris.git synced 2025-12-18 10:27:06 +00:00

minor: versioning: Match: store the matched version and revert the last change

Former-commit-id: e7aa04671d3f54650bb194a97300b6a89e1b0d2b
This commit is contained in:
Gerasimos (Makis) Maropoulos
2020-06-20 09:39:42 +03:00
parent 3c86fa8010
commit 878484204e
6 changed files with 35 additions and 18 deletions

View File

@@ -17,7 +17,7 @@ func TestGetVersion(t *testing.T) {
app.Get("/", writeVesion)
app.Get("/manual", func(ctx iris.Context) {
ctx.SetVersion("11.0.5")
versioning.SetVersion(ctx, "11.0.5")
ctx.Next()
}, writeVesion)