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:
parent
caf3bd31eb
commit
d14b8f5ba4
@ -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 {
|
||||
|
@ -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 {
|
||||
func Favicon() echo.HandlerFunc {
|
||||
return func(c echo.Context) error {
|
||||
return nil
|
||||
})
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user