Enhancement: File Handling and Compression Support #4

Merged
delorean merged 2 commits from compression into main 2024-02-28 18:23:50 +00:00
Showing only changes of commit 17a2b97d18 - Show all commits

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)