Prevent proxying string returns when using eventlet.tpool

Honestly you probably shouldn't return strings from the wsgi
app but just in case..

Change-Id: Id7a4604645009235961a7f88b0bea72e2eeeb27d
This commit is contained in:
R. Tyler Ballance 2010-08-17 21:45:50 -07:00
parent 1a05c5c701
commit d1f734cafa
1 changed files with 1 additions and 1 deletions

View File

@ -94,7 +94,7 @@ def tpool_wsgi(app):
def tpooled_application(e, s):
result = tpool.execute(app, e, s)
# return builtins directly
if isinstance(result, (list, tuple)):
if isinstance(result, (basestring, list, tuple)):
return result
else:
# iterators might execute code when iterating over them,