1
0
mirror of https://github.com/labstack/echo.git synced 2025-03-21 21:27:04 +02:00

fix request scheme

This commit is contained in:
Oleg Lobanov 2016-06-01 16:43:17 +04:00
parent 91d1f199cb
commit 40621eddfd

@ -43,10 +43,7 @@ func (r *Request) IsTLS() bool {
// Scheme implements `engine.Request#Scheme` function.
func (r *Request) Scheme() string {
if r.IsTLS() {
return "https"
}
return "http"
return r.Request.URL.Scheme
}
// Host implements `engine.Request#Host` function.