mirror of
https://github.com/kataras/iris.git
synced 2025-12-17 09:57:01 +00:00
Update to version 11.0.4. Read https://github.com/kataras/iris/blob/master/HISTORY.md#fr-09-november-2018--v1104
Former-commit-id: 2c2c32afe31fe94543d145ab8c8475d7b4392ff1
This commit is contained in:
@@ -142,6 +142,7 @@ func TestConfigurationYAML(t *testing.T) {
|
||||
|
||||
yamlConfigurationContents := `
|
||||
DisablePathCorrection: false
|
||||
DisablePathCorrectionRedirection: true
|
||||
EnablePathEscape: false
|
||||
FireMethodNotAllowed: true
|
||||
EnableOptimizations: true
|
||||
@@ -167,6 +168,10 @@ Other:
|
||||
t.Fatalf("error on TestConfigurationYAML: Expected DisablePathCorrection %v but got %v", expected, c.DisablePathCorrection)
|
||||
}
|
||||
|
||||
if expected := true; c.DisablePathCorrectionRedirection != expected {
|
||||
t.Fatalf("error on TestConfigurationYAML: Expected DisablePathCorrectionRedirection %v but got %v", expected, c.DisablePathCorrectionRedirection)
|
||||
}
|
||||
|
||||
if expected := false; c.EnablePathEscape != expected {
|
||||
t.Fatalf("error on TestConfigurationYAML: Expected EnablePathEscape %v but got %v", expected, c.EnablePathEscape)
|
||||
}
|
||||
@@ -235,6 +240,7 @@ func TestConfigurationTOML(t *testing.T) {
|
||||
}()
|
||||
|
||||
tomlConfigurationContents := `
|
||||
DisablePathCorrectionRedirection = true
|
||||
EnablePathEscape = false
|
||||
FireMethodNotAllowed = true
|
||||
EnableOptimizations = true
|
||||
@@ -262,6 +268,10 @@ Charset = "UTF-8"
|
||||
t.Fatalf("error on TestConfigurationTOML: Expected DisablePathCorrection %v but got %v", expected, c.DisablePathCorrection)
|
||||
}
|
||||
|
||||
if expected := true; c.DisablePathCorrectionRedirection != expected {
|
||||
t.Fatalf("error on TestConfigurationTOML: Expected DisablePathCorrectionRedirection %v but got %v", expected, c.DisablePathCorrectionRedirection)
|
||||
}
|
||||
|
||||
if expected := false; c.EnablePathEscape != expected {
|
||||
t.Fatalf("error on TestConfigurationTOML: Expected EnablePathEscape %v but got %v", expected, c.EnablePathEscape)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user