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:
Shivam Mishra
2022-06-02 20:54:42 +00:00
committed by Ramkumar Chinchani
parent f52c950d04
commit 620bc7c517
4 changed files with 50 additions and 10 deletions
-3
View File
@@ -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
}