From 3a2673d52ef7e8cf22879c29ff7af0a027f0b428 Mon Sep 17 00:00:00 2001 From: benoitc Date: Wed, 24 Feb 2010 18:57:12 +0100 Subject: [PATCH] don't return headers here. --- gunicorn/http/parser.py | 4 +--- gunicorn/management/commands/run_gunicorn.py | 3 +-- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/gunicorn/http/parser.py b/gunicorn/http/parser.py index 3e47ec2a..082f06c8 100644 --- a/gunicorn/http/parser.py +++ b/gunicorn/http/parser.py @@ -34,9 +34,7 @@ class Parser(object): if parsing isn't done. headers dict is updated with new headers. """ - if self.headers: - return self.headers - + ld = len("\r\n\r\n") i = buf.find("\r\n\r\n") if i != -1: diff --git a/gunicorn/management/commands/run_gunicorn.py b/gunicorn/management/commands/run_gunicorn.py index 336f111f..804e9c73 100644 --- a/gunicorn/management/commands/run_gunicorn.py +++ b/gunicorn/management/commands/run_gunicorn.py @@ -68,8 +68,7 @@ class Command(BaseCommand): # django.core.management.base forces the locale to en-us. translation.activate(settings.LANGUAGE_CODE) - - + try: handler = AdminMediaHandler(WSGIHandler(), admin_media_path) arbiter = Arbiter(conf.address, conf.workers, handler,