mirror of
https://github.com/project-zot/zot.git
synced 2026-06-16 20:38:08 +08:00
routes: strip query parameter from request URL
reuqest url also contains query parameter due to this in some scenarios location header is setting up incorrectly, strip query parameter from request url to correctly setup location header. Closes #573 #575 Signed-off-by: Shivam Mishra <shimish2@cisco.com>
This commit is contained in:
committed by
Ramkumar Chinchani
parent
f52c950d04
commit
620bc7c517
@@ -80,9 +80,6 @@ func Location(baseURL string, resp *resty.Response) string {
|
||||
}
|
||||
|
||||
path := uloc.Path
|
||||
if query := uloc.RawQuery; query != "" {
|
||||
path += "?" + query
|
||||
}
|
||||
|
||||
return baseURL + path
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user