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:
parent
1a05c5c701
commit
d1f734cafa
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue