1
0
mirror of https://github.com/kataras/iris.git synced 2025-12-20 03:17:04 +00:00

Updated all dependencies one by one to go.mod - Backup and remove the vendor folder entirely and update most of the examples - next commit will contain the rest of the updated

Former-commit-id: 2791c50256c0f00d6e08a408e5cb009262c49588
This commit is contained in:
Gerasimos (Makis) Maropoulos
2019-07-15 07:49:04 +03:00
parent 86a18ff545
commit 137c41344d
27 changed files with 74 additions and 2156 deletions

View File

@@ -36,7 +36,6 @@ func Deprecated(handler context.Handler, options DeprecationOptions) context.Han
}
return func(ctx context.Context) {
handler(ctx)
ctx.Header("X-API-Warn", options.WarnMessage)
if !options.DeprecationDate.IsZero() {
@@ -46,5 +45,7 @@ func Deprecated(handler context.Handler, options DeprecationOptions) context.Han
if options.DeprecationInfo != "" {
ctx.Header("X-API-Deprecation-Info", options.DeprecationInfo)
}
handler(ctx)
}
}