mirror of
https://github.com/kataras/iris.git
synced 2025-03-20 23:46:26 +01:00
DONATIONS update summary
This commit is contained in:
parent
20eb0dcc4a
commit
f39b6c4bfb
|
@ -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
|
- [Bob Lee](https://github.com/li3p) donated 20 EUR at September 16
|
||||||
- [Celso Luiz](https://github.com/celsosz) donated 50 EUR at September 29
|
- [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 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.
|
> The name of the donator added after his/her permission.
|
||||||
|
|
||||||
|
|
8
iris.go
8
iris.go
|
@ -1348,8 +1348,10 @@ func (api *muxAPI) Handle(method string, registedPath string, handlers ...Handle
|
||||||
subdomain = fullpath[0 : dotWSlashIdx+1] // admin.
|
subdomain = fullpath[0 : dotWSlashIdx+1] // admin.
|
||||||
path = fullpath[dotWSlashIdx+1:] // /
|
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
|
// not needed after the redirect status change for POST methods
|
||||||
if api.mux.correctPath {
|
// 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/"
|
// remove last "/" if any, "/xyz/"
|
||||||
if len(path) > 1 { // if it's the root, then keep it*
|
if len(path) > 1 { // if it's the root, then keep it*
|
||||||
if path[len(path)-1] == slashByte {
|
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 = path[0 : len(path)-1]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}*/
|
||||||
|
|
||||||
path = strings.Replace(path, "//", "/", -1) // fix the path if double //
|
path = strings.Replace(path, "//", "/", -1) // fix the path if double //
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user