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

View File

@ -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).

View File

@ -19,7 +19,7 @@
<br/>
<a href="https://github.com/kataras/iris/releases"><img src="https://img.shields.io/badge/%20version%20-%204.4.3%20-blue.svg?style=flat-square" alt="Releases"></a>
<a href="https://github.com/kataras/iris/releases"><img src="https://img.shields.io/badge/%20version%20-%204.4.4%20-blue.svg?style=flat-square" alt="Releases"></a>
<a href="https://github.com/iris-contrib/examples"><img src="https://img.shields.io/badge/%20examples-repository-3362c2.svg?style=flat-square" alt="Examples"></a>
@ -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

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
}
}