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

Merge pull request #521 from 0x616E676572/fix-1

Fix endless loop
This commit is contained in:
Vishal Rana 2016-05-22 16:15:29 -07:00
commit 96898d5b9b

View File

@ -49,7 +49,7 @@ func (h *RequestHeader) Keys() (keys []string) {
// Contains implements `engine.Header#Contains` function.
func (h *RequestHeader) Contains(key string) bool {
return h.Contains(key)
return h.Peek(key) != nil
}
func (h *RequestHeader) reset(hdr *fasthttp.RequestHeader) {
@ -89,7 +89,7 @@ func (h *ResponseHeader) Keys() (keys []string) {
// Contains implements `engine.Header#Contains` function.
func (h *ResponseHeader) Contains(key string) bool {
return h.Contains(key)
return h.Peek(key) != nil
}
func (h *ResponseHeader) reset(hdr *fasthttp.ResponseHeader) {