fix http->https
This commit is contained in:
parent
8e65053cc1
commit
17a2b97d18
2
main.go
2
main.go
@ -232,7 +232,7 @@ func UploadHandler(w http.ResponseWriter, r *http.Request) {
|
|||||||
data.Reset()
|
data.Reset()
|
||||||
log.Info().Str("name", name).Int64("ttl", ttl).Msg("wrote new file")
|
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.Header().Set("Location", hostedurl)
|
||||||
w.WriteHeader(http.StatusSeeOther)
|
w.WriteHeader(http.StatusSeeOther)
|
||||||
|
Loading…
Reference in New Issue
Block a user