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:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user