Commit 6d746332 authored by Juergen Enge's avatar Juergen Enge
Browse files

bad hack. force use of https scheme in viewer

parent bd0c6c11
......@@ -40,7 +40,8 @@ func (aa *ActionAudio) viewer(w http.ResponseWriter, req *http.Request, me *Medi
Start int64
}
scheme := "http"
// todo: Bad Hack, should be http
scheme := "https"
if req.TLS != nil {
scheme = "https"
}
......
......@@ -40,7 +40,8 @@ func (av *ActionVideo) viewer(w http.ResponseWriter, req *http.Request, me *Medi
Start int64
}
scheme := "http"
// todo: Bad Hack, should be http
scheme := "https"
if req.TLS != nil {
scheme = "https"
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment