diff --git a/gunicorn/http/parser.py b/gunicorn/http/parser.py index cb8c9bef..466c810c 100644 --- a/gunicorn/http/parser.py +++ b/gunicorn/http/parser.py @@ -40,8 +40,7 @@ class Parser(object): s = "".join(buf) i = s.find("\r\n\r\n") if i != -1: - if i > 0: - r = s[:i] + r = s[:i] pos = i+4 return self.finalize_headers(headers, r, pos) return -1