Will this do ?

This commit is contained in:
cdricms
2025-02-11 11:33:23 +01:00
parent ca00666ff5
commit bc54133f18

View File

@@ -54,7 +54,7 @@ func HandleMedia(w http.ResponseWriter, r *http.Request) {
return
}
scheme := "http"
if r.TLS != nil { // Check if the request is over HTTPS
if r.TLS != nil || os.Getenv("ENVIRONMENT") != "DEV" { // Check if the request is over HTTPS
scheme = "https"
}