mirror of
https://github.com/kataras/iris.git
synced 2025-01-23 18:51:03 +01:00
Merge pull request #727 from sy264115809/master
Former-commit-id: dc06c8311210af0cf5b9ebab92a5eea61c038bbd
This commit is contained in:
commit
531ca5829c
|
@ -214,8 +214,8 @@ func (api *APIBuilder) Party(relativePath string, handlers ...context.Handler) P
|
|||
}
|
||||
|
||||
// this is checked later on but for easier debug is better to do it here:
|
||||
if api.relativePath[0] == '/' && relativePath[0] == '/' {
|
||||
parentPath = parentPath[1:] // remove first slash if parent ended with / and new one started with /.
|
||||
if api.relativePath[len(api.relativePath)-1] == '/' && relativePath[0] == '/' {
|
||||
relativePath = relativePath[1:] // remove first slash if parent ended with / and new one started with /.
|
||||
}
|
||||
|
||||
// if it's subdomain then it has priority, i.e:
|
||||
|
|
Loading…
Reference in New Issue
Block a user