1
0
mirror of https://github.com/kataras/iris.git synced 2026-03-07 08:55:57 +00:00

Update to 4.4.4

This commit is contained in:
Gerasimos Maropoulos
2016-10-02 07:21:44 +03:00
parent 78f3323ce4
commit 3970804a37
3 changed files with 11 additions and 9 deletions

10
iris.go
View File

@@ -80,7 +80,7 @@ import (
const (
// Version is the current version of the Iris web framework
Version = "4.4.3"
Version = "4.4.4"
banner = ` _____ _
|_ _| (_)
@@ -241,8 +241,9 @@ func New(setters ...OptionSetter) *Framework {
{
// set the servemux, which will provide us the public API also, with its context pool
mux := newServeMux(s.Logger)
mux.escapePath = !s.Config.DisablePathCorrection
// escapePath re-setted on .Set and after build, it's the only config which should be setted before any other route(party-releated) method called.
mux.correctPath = !s.Config.DisablePathCorrection
// escapePath & correctPath are re-setted on .Set and after build*
mux.escapePath = !s.Config.DisablePathEscape
mux.onLookup = s.Plugins.DoPreLookup
s.contextPool.New = func() interface{} {
@@ -273,7 +274,8 @@ func (s *Framework) Set(setters ...OptionSetter) {
}
if s.muxAPI != nil && s.mux != nil { // if called after .New
s.mux.escapePath = !s.Config.DisablePathCorrection // then re-set the mux' pathEscape, which should be setted BEFORE any route-releated method call
s.mux.correctPath = !s.Config.DisablePathCorrection
s.mux.escapePath = !s.Config.DisablePathEscape
}
}