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,