mirror of
https://github.com/kataras/iris.git
synced 2025-12-18 02:17:05 +00:00
Version 11 released. Read https://github.com/kataras/iris/blob/master/HISTORY.md#su-21-october-2018--v1100
Former-commit-id: fe6305deed00e170bf4d39a12c0644fe686e0a24
This commit is contained in:
@@ -222,14 +222,6 @@ var WithoutInterruptHandler = func(app *Application) {
|
||||
app.config.DisableInterruptHandler = true
|
||||
}
|
||||
|
||||
// WithoutVersionChecker will disable the version checker and updater.
|
||||
// The Iris server will be not
|
||||
// receive automatic updates if you pass this
|
||||
// to the `Run` function. Use it only while you're ready for Production environment.
|
||||
var WithoutVersionChecker = func(app *Application) {
|
||||
app.config.DisableVersionChecker = true
|
||||
}
|
||||
|
||||
// WithoutPathCorrection disables the PathCorrection setting.
|
||||
//
|
||||
// See `Configuration`.
|
||||
@@ -388,11 +380,6 @@ type Configuration struct {
|
||||
// Defaults to false.
|
||||
DisableInterruptHandler bool `json:"disableInterruptHandler,omitempty" yaml:"DisableInterruptHandler" toml:"DisableInterruptHandler"`
|
||||
|
||||
// DisableVersionChecker if true then process will be not be notified for any available updates.
|
||||
//
|
||||
// Defaults to false.
|
||||
DisableVersionChecker bool `json:"disableVersionChecker,omitempty" yaml:"DisableVersionChecker" toml:"DisableVersionChecker"`
|
||||
|
||||
// DisablePathCorrection corrects and redirects the requested path to the registered path
|
||||
// for example, if /home/ path is requested but no handler for this Route found,
|
||||
// then the Router checks if /home handler exists, if yes,
|
||||
@@ -677,10 +664,6 @@ func WithConfiguration(c Configuration) Configurator {
|
||||
main.DisableInterruptHandler = v
|
||||
}
|
||||
|
||||
if v := c.DisableVersionChecker; v {
|
||||
main.DisableVersionChecker = v
|
||||
}
|
||||
|
||||
if v := c.DisablePathCorrection; v {
|
||||
main.DisablePathCorrection = v
|
||||
}
|
||||
@@ -758,7 +741,6 @@ func DefaultConfiguration() Configuration {
|
||||
return Configuration{
|
||||
DisableStartupLog: false,
|
||||
DisableInterruptHandler: false,
|
||||
DisableVersionChecker: false,
|
||||
DisablePathCorrection: false,
|
||||
EnablePathEscape: false,
|
||||
FireMethodNotAllowed: false,
|
||||
|
||||
Reference in New Issue
Block a user