diff --git a/gunicorn/__init__.py b/gunicorn/__init__.py index 20f9c238..8cdb5be0 100644 --- a/gunicorn/__init__.py +++ b/gunicorn/__init__.py @@ -3,5 +3,5 @@ # This file is part of gunicorn released under the MIT license. # See the NOTICE for more information. -version_info = (0, 9, 1) +version_info = (0, 10, "0-dev") __version__ = ".".join(map(str, version_info)) diff --git a/gunicorn/workers/async.py b/gunicorn/workers/async.py index 5476e970..11d07acc 100644 --- a/gunicorn/workers/async.py +++ b/gunicorn/workers/async.py @@ -60,7 +60,7 @@ class AsyncWorker(base.Worker): try: debug = self.cfg.get("debug", False) resp, environ = wsgi.create(req, sock, addr, self.address, debug) - respiter = self.app(environ, resp.start_response) + respiter = self.wsgi(environ, resp.start_response) if respiter == ALREADY_HANDLED: return False for item in respiter: diff --git a/gunicorn/workers/sync.py b/gunicorn/workers/sync.py index 2f6d1fd1..7c616db7 100644 --- a/gunicorn/workers/sync.py +++ b/gunicorn/workers/sync.py @@ -91,9 +91,9 @@ class SyncWorker(base.Worker): def handle_request(self, req, client, addr): try: - debug = self.cfg.get("debug", False) + debug = self.cfg.debug or False resp, environ = wsgi.create(req, client, addr, self.address, debug) - respiter = self.app(environ, resp.start_response) + respiter = self.wsgi(environ, resp.start_response) for item in respiter: resp.write(item) resp.close()