From 176ad162b1f53bd745eb0cb67dfb8cd6099bddbb Mon Sep 17 00:00:00 2001 From: benoitc Date: Wed, 3 Mar 2010 16:23:32 +0100 Subject: [PATCH] fix header parsing. spotted by MattCampbell on irc. thx --- gunicorn/http/parser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gunicorn/http/parser.py b/gunicorn/http/parser.py index 466c810c..4cc4431d 100644 --- a/gunicorn/http/parser.py +++ b/gunicorn/http/parser.py @@ -58,7 +58,7 @@ class Parser(object): _headers = {} hname = "" for line in lines: - if line == "\t": + if line.startswith("\t"): headers[hname] += line.strip() else: try: