1
0
mirror of https://github.com/labstack/echo.git synced 2025-02-03 13:11:39 +02:00

Fix endless loop

This commit is contained in:
anger 2016-05-23 02:05:38 +03:00
parent ecb021f830
commit c55fea6a03

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) {