Will this do ?
This commit is contained in:
@@ -54,7 +54,7 @@ func HandleMedia(w http.ResponseWriter, r *http.Request) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
scheme := "http"
|
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"
|
scheme = "https"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user