fix http->https

This commit is contained in:
sad
2024-02-28 06:50:11 -07:00
parent 8e65053cc1
commit 17a2b97d18
+1 -1
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)