diff --git a/DONATIONS.md b/DONATIONS.md index 0830e213..0002f3ae 100644 --- a/DONATIONS.md +++ b/DONATIONS.md @@ -29,7 +29,7 @@ I'm grateful for all the generous donations. Iris is fully funded by these dona - [Bob Lee](https://github.com/li3p) donated 20 EUR at September 16 - [Celso Luiz](https://github.com/celsosz) donated 50 EUR at September 29 - ANONYMOUS(Waiting For Approval) donated 6 EUR at October 1 -- ANONYMOUS(Waiting For Approval) donated 20 EUR at October 2 +- Ankur Srivastava donated 20 EUR at October 2 > The name of the donator added after his/her permission. diff --git a/iris.go b/iris.go index ba1061f0..598e01d5 100644 --- a/iris.go +++ b/iris.go @@ -1348,8 +1348,10 @@ func (api *muxAPI) Handle(method string, registedPath string, handlers ...Handle subdomain = fullpath[0 : dotWSlashIdx+1] // admin. path = fullpath[dotWSlashIdx+1:] // / } - // we splitted the path and subdomain parts so we're ready to check only the path, otherwise we will had problems with subdomains - if api.mux.correctPath { + // not needed after the redirect status change for POST methods + // we splitted the path and subdomain parts so we're ready to check only the path, + // otherwise we will had problems with subdomains + /*if api.mux.correctPath { // remove last "/" if any, "/xyz/" if len(path) > 1 { // if it's the root, then keep it* if path[len(path)-1] == slashByte { @@ -1357,7 +1359,7 @@ func (api *muxAPI) Handle(method string, registedPath string, handlers ...Handle path = path[0 : len(path)-1] } } - } + }*/ path = strings.Replace(path, "//", "/", -1) // fix the path if double //