From ddcd8311f7666b0f7246474cdaf944c1fa036b53 Mon Sep 17 00:00:00 2001 From: Alexander Rakoczy Date: Thu, 18 Nov 2021 16:13:16 -0500 Subject: don't hardcode the host --- cmd/server/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cmd') diff --git a/cmd/server/main.go b/cmd/server/main.go index 321cb88..f0f7637 100644 --- a/cmd/server/main.go +++ b/cmd/server/main.go @@ -215,7 +215,7 @@ func upload(b *storage.BucketHandle) http.Handler { http.Error(w, http.StatusText(http.StatusInternalServerError), http.StatusInternalServerError) return } - u := url.URL{Scheme: "https", Host: "i.dis.band", Path: outName} + u := url.URL{Scheme: "https", Host: r.Host, Path: outName} fmt.Fprintln(w, u.String()) }) } -- cgit v1.2.3-73-g0e29