From 6845d10460024edd26d40488b2dddeb3fa5b62eb Mon Sep 17 00:00:00 2001 From: benoitc Date: Wed, 17 Mar 2010 23:06:45 +0100 Subject: [PATCH] fix worker. status is a response thing. instead test if we got a status line or if environ isn't empty. --- examples/gunicorn.conf.py | 2 -- gunicorn/worker.py | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) delete mode 100644 examples/gunicorn.conf.py diff --git a/examples/gunicorn.conf.py b/examples/gunicorn.conf.py deleted file mode 100644 index 664afb79..00000000 --- a/examples/gunicorn.conf.py +++ /dev/null @@ -1,2 +0,0 @@ -arbiter = "egg:gunicorn#eventlet" -worker_connections = 1000 diff --git a/gunicorn/worker.py b/gunicorn/worker.py index 414658bb..54e364a8 100644 --- a/gunicorn/worker.py +++ b/gunicorn/worker.py @@ -155,7 +155,7 @@ class Worker(object): try: environ = req.read() - if not environ or not req.parser.status: + if not environ or not req.parser.status_line: return response = self.app(environ, req.start_response)