mirror of
https://github.com/labstack/echo.git
synced 2024-11-24 08:22:21 +02:00
Fix infinite recursion
It was quite a suprise when Echo ate a gigabyte of my RAM with a one line request handler 😏
This commit is contained in:
parent
1c2d6341ba
commit
ac2f2016d3
@ -34,7 +34,7 @@ func NewRequest(c *fasthttp.RequestCtx, l *log.Logger) *Request {
|
||||
|
||||
// IsTLS implements `engine.Request#TLS` function.
|
||||
func (r *Request) IsTLS() bool {
|
||||
return r.IsTLS()
|
||||
return r.RequestCtx.IsTLS()
|
||||
}
|
||||
|
||||
// Scheme implements `engine.Request#Scheme` function.
|
||||
|
Loading…
Reference in New Issue
Block a user