From 17a2b97d18df40edad4dc3b3c769b556fd7a3004 Mon Sep 17 00:00:00 2001 From: sad Date: Wed, 28 Feb 2024 06:50:11 -0700 Subject: [PATCH] fix http->https --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 608b122..e8fc6db 100644 --- a/main.go +++ b/main.go @@ -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)