Will this do ?
This commit is contained in:
@@ -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"
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user