mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
Rename GeventResponse.response_length to sent
This makes it compatible with the duck typing of the response object in the glogging request logger.
This commit is contained in:
parent
fd95f66f2d
commit
54af01b1be
@ -196,12 +196,12 @@ class GeventResponse(object):
|
||||
|
||||
status = None
|
||||
headers = None
|
||||
response_length = None
|
||||
sent = None
|
||||
|
||||
def __init__(self, status, headers, clength):
|
||||
self.status = status
|
||||
self.headers = headers
|
||||
self.response_length = clength
|
||||
self.sent = clength
|
||||
|
||||
|
||||
class PyWSGIHandler(pywsgi.WSGIHandler):
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user