1
0
mirror of https://github.com/labstack/echo.git synced 2024-12-24 20:14:31 +02:00

Fixed standard engine request#Host()

Signed-off-by: Vishal Rana <vr@labstack.com>
This commit is contained in:
Vishal Rana 2016-02-17 08:24:57 -08:00
parent caf3bd31eb
commit d14b8f5ba4
2 changed files with 4 additions and 9 deletions

View File

@ -24,7 +24,7 @@ func NewRequest(r *http.Request) *Request {
}
func (r *Request) Host() string {
return r.Host()
return r.request.Host
}
func (r *Request) URL() engine.URL {

View File

@ -15,9 +15,6 @@ type (
Browse bool
Index string
}
FaviconOptions struct {
}
)
func (s Static) Handle(c echo.Context) error {
@ -83,10 +80,8 @@ func (s Static) Handle(c echo.Context) error {
}
// Favicon serves the default favicon - GET /favicon.ico.
func Favicon(root string, options ...FaviconOptions) echo.MiddlewareFunc {
return func(h echo.Handler) echo.Handler {
return echo.HandlerFunc(func(c echo.Context) error {
return nil
})
func Favicon() echo.HandlerFunc {
return func(c echo.Context) error {
return nil
}
}