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:
@@ -20,7 +20,7 @@ func decodeJsonRequest(req *http.Request, data interface{}) error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func redirect(hostname string, w http.ResponseWriter, req *http.Request) {
|
func redirect(hostname string, w http.ResponseWriter, req *http.Request) {
|
||||||
originalURL, _ := url.Parse(req.URL.String())
|
originalURL := req.URL
|
||||||
redirectURL, _ := url.Parse(hostname)
|
redirectURL, _ := url.Parse(hostname)
|
||||||
|
|
||||||
// we need the original path and raw query
|
// we need the original path and raw query
|
||||||
|
|||||||
Reference in New Issue
Block a user