fix http->https

This commit is contained in:
sad 2024-02-28 06:50:11 -07:00
parent 8e65053cc1
commit 17a2b97d18
WARNING! Although there is a key with this ID in the database it does not verify this commit! This commit is SUSPICIOUS.
GPG Key ID: 28D3A882F3E6AD02
1 changed files with 1 additions and 1 deletions

View File

@ -232,7 +232,7 @@ func UploadHandler(w http.ResponseWriter, r *http.Request) {
data.Reset()
log.Info().Str("name", name).Int64("ttl", ttl).Msg("wrote new file")
hostedurl := "http://" + conf.VHost + "/uploads/" + name
hostedurl := "https://" + conf.VHost + "/uploads/" + name
w.Header().Set("Location", hostedurl)
w.WriteHeader(http.StatusSeeOther)