diff --git a/HISTORY.md b/HISTORY.md index 1da98277..bac373c7 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -2,11 +2,11 @@ **How to upgrade**: remove your `$GOPATH/src/github.com/kataras` folder, open your command-line and execute this command: `go get -u github.com/kataras/iris/iris`. -## 4.4.1 -> 4.4.3 +## 4.4.1 -> 4.4.4 - **FIX**: CORS - **FIX**: Unexpected Party root's route slash when `DisablePathCorrection` is false(default), as reported [here](https://github.com/kataras/iris/issues/453) - +- **small fix**: DisablePathEscape not affects ## 4.4.0 -> 4.4.1 - **NEW**: Template PreRenders, as requested [here](https://github.com/kataras/iris/issues/412). diff --git a/README.md b/README.md index ddf2a26e..ac1e8ef0 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@
-Releases +Releases Examples @@ -222,7 +222,7 @@ I recommend writing your API tests using this new library, [httpexpect](https:// Versioning ------------ -Current: **v4.4.3** +Current: **v4.4.4** > Iris is an active project @@ -258,7 +258,7 @@ This project is licensed under the [MIT License](LICENSE), Copyright (c) 2016 Ge [Travis]: http://travis-ci.org/kataras/iris [License Widget]: https://img.shields.io/badge/license-MIT%20%20License%20-E91E63.svg?style=flat-square [License]: https://github.com/kataras/iris/blob/master/LICENSE -[Release Widget]: https://img.shields.io/badge/release-4.4.3%20-blue.svg?style=flat-square +[Release Widget]: https://img.shields.io/badge/release-4.4.4%20-blue.svg?style=flat-square [Release]: https://github.com/kataras/iris/releases [Chat Widget]: https://img.shields.io/badge/community-chat%20-00BCD4.svg?style=flat-square [Chat]: https://kataras.rocket.chat/channel/iris diff --git a/iris.go b/iris.go index 4cb2cf64..bd8d98b3 100644 --- a/iris.go +++ b/iris.go @@ -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 } }