DONATIONS update summary

This commit is contained in:
Gerasimos Maropoulos 2016-10-03 17:23:53 +03:00
parent 20eb0dcc4a
commit f39b6c4bfb
2 changed files with 6 additions and 4 deletions

View File

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

View File

@ -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 //