Skip to content
This repository has been archived by the owner on Nov 23, 2020. It is now read-only.

Commit

Permalink
Don't wrap wsgi.input with GreenBody if it is already wrapped #releas…
Browse files Browse the repository at this point in the history
…e-note
  • Loading branch information
lsbardel committed May 17, 2016
1 parent 59d1f63 commit d66ddb8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pulsar/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from .utils.version import get_version


VERSION = (1, 3, 1, 'alpha', 0)
VERSION = (1, 3, 1, 'final', 0)

__version__ = version = get_version(VERSION)

Expand Down
5 changes: 3 additions & 2 deletions pulsar/apps/greenio/wsgi.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,9 @@ def __call__(self, environ, start_response):
return self.pool.submit(self._call, environ, start_response)

def _call(self, environ, start_response):
if environ['wsgi.input']:
environ['wsgi.input'] = GreenStream(environ['wsgi.input'])
wsgi_input = environ['wsgi.input']
if wsgi_input and not isinstance(wsgi_input, GreenStream):
environ['wsgi.input'] = GreenStream(wsgi_input)
response = None
try:
for middleware in self.middleware:
Expand Down

0 comments on commit d66ddb8

Please sign in to comment.