Skip to content

Commit

Permalink
fix http->https
Browse files Browse the repository at this point in the history
  • Loading branch information
sad committed Feb 28, 2024
1 parent 8e65053 commit 17a2b97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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:https://" + conf.VHost + "/uploads/" + name
hostedurl := "https:https://" + conf.VHost + "/uploads/" + name

w.Header().Set("Location", hostedurl)
w.WriteHeader(http.StatusSeeOther)
Expand Down

0 comments on commit 17a2b97

Please sign in to comment.