diff options
| author | Alexander Rakoczy <[email protected]> | 2021-11-18 16:13:16 -0500 |
|---|---|---|
| committer | Alexander Rakoczy <[email protected]> | 2021-11-18 16:13:16 -0500 |
| commit | ddcd8311f7666b0f7246474cdaf944c1fa036b53 (patch) | |
| tree | 8ea8156d2e5bc72070dd120e360a006a1e552095 | |
| parent | 1cdf6bac9abb2b895e0532a4502ccdff0183896b (diff) | |
don't hardcode the host
| -rw-r--r-- | cmd/server/main.go | 2 |
1 files changed, 1 insertions, 1 deletions
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()) }) } |
