From ac2f2016d3990da100a664c534c83c6fd2f43b8c Mon Sep 17 00:00:00 2001 From: Anon-Penguin Date: Tue, 19 Apr 2016 14:05:05 -0500 Subject: [PATCH] Fix infinite recursion It was quite a suprise when Echo ate a gigabyte of my RAM with a one line request handler :smirk: --- engine/fasthttp/request.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/fasthttp/request.go b/engine/fasthttp/request.go index 8c52e4d2..de84180b 100644 --- a/engine/fasthttp/request.go +++ b/engine/fasthttp/request.go @@ -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.