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