mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
fix do not need to parse the original url
This commit is contained in:
parent
1119a86cc3
commit
2cafdcd657
@ -20,7 +20,7 @@ func decodeJsonRequest(req *http.Request, data interface{}) error {
|
||||
}
|
||||
|
||||
func redirect(hostname string, w http.ResponseWriter, req *http.Request) {
|
||||
originalURL, _ := url.Parse(req.URL.String())
|
||||
originalURL := req.URL
|
||||
redirectURL, _ := url.Parse(hostname)
|
||||
|
||||
// we need the original path and raw query
|
||||
|
Loading…
x
Reference in New Issue
Block a user