mirror of
https://github.com/Quiq/docker-registry-ui.git
synced 2025-07-17 07:41:18 +00:00
Fix config.BasePath
This commit is contained in:
parent
0695e3f777
commit
f38649f8b8
@ -56,8 +56,9 @@ func readConfig(configFile string) *configData {
|
||||
}
|
||||
|
||||
// Normalize base path.
|
||||
config.BasePath = strings.Trim(config.BasePath, "/")
|
||||
if config.BasePath != "" {
|
||||
config.BasePath = "/" + strings.Trim(config.BasePath, "/")
|
||||
config.BasePath = "/" + config.BasePath
|
||||
}
|
||||
|
||||
// Read password from file.
|
||||
|
Loading…
Reference in New Issue
Block a user