1
0
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:
Anon-Penguin 2016-04-19 14:05:05 -05:00
parent 1c2d6341ba
commit ac2f2016d3

View File

@ -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.