mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
fix add fragment
This commit is contained in:
parent
5767b4e245
commit
1119a86cc3
@ -26,6 +26,7 @@ func redirect(hostname string, w http.ResponseWriter, req *http.Request) {
|
||||
// we need the original path and raw query
|
||||
redirectURL.Path = originalURL.Path
|
||||
redirectURL.RawQuery = originalURL.RawQuery
|
||||
redirectURL.Fragment = originalURL.Fragment
|
||||
|
||||
log.Debugf("Redirect to %s", redirectURL.String())
|
||||
http.Redirect(w, req, redirectURL.String(), http.StatusTemporaryRedirect)
|
||||
|
Loading…
x
Reference in New Issue
Block a user