1
0
mirror of https://github.com/kataras/iris.git synced 2025-12-22 20:37:05 +00:00

remove 'WithoutVersionChecker', update and test the new versions of some of the dependencies, add a history entry with unknown release date

Former-commit-id: 399db6aac44d3b336648d6d61842f4d7a0266842
This commit is contained in:
Gerasimos (Makis) Maropoulos
2018-08-31 02:09:48 +03:00
parent 6cf48df5c0
commit f365be3c62
32 changed files with 143 additions and 300 deletions

View File

@@ -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,