[BREAKING] HYP_PROXY only contains the hostname

This commit is contained in:
Shiny Nematoda
2022-12-13 08:38:56 +00:00
parent 3e5fb144ae
commit ddfa09e7ad
+1 -1
View File
@@ -31,7 +31,7 @@ func ParseUrl(raw string) (string, error) {
prehost := u.Host
u.Host = os.Getenv("HYP_PROXY")
u.Host = "https://" + os.Getenv("HYP_PROXY")
q := u.Query()
q.Set("host", prehost)
u.RawQuery = q.Encode()