gluon.http expects status code as integer
This commit is contained in:
+1
-1
@@ -231,7 +231,7 @@ class LazyWSGI(object):
|
||||
|
||||
to call third party WSGI applications
|
||||
"""
|
||||
self.response.status = str(status).split(' ', 1)[0]
|
||||
self.response.status = int(str(status).split(' ', 1)[0])
|
||||
self.response.headers = dict(headers)
|
||||
return lambda *args, **kargs: \
|
||||
self.response.write(escape=False, *args, **kargs)
|
||||
|
||||
Reference in New Issue
Block a user