Merge pull request #727 from sy264115809/master

Former-commit-id: dc06c8311210af0cf5b9ebab92a5eea61c038bbd
This commit is contained in:
Gerasimos (Makis) Maropoulos 2017-08-23 15:22:48 +03:00 committed by GitHub
commit 531ca5829c

View File

@ -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: // this is checked later on but for easier debug is better to do it here:
if api.relativePath[0] == '/' && relativePath[0] == '/' { if api.relativePath[len(api.relativePath)-1] == '/' && relativePath[0] == '/' {
parentPath = parentPath[1:] // remove first slash if parent ended with / and new one started with /. 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: // if it's subdomain then it has priority, i.e: