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:
Randall Leeds 2014-12-19 09:54:37 -08:00
parent fd95f66f2d
commit 54af01b1be

View File

@ -196,12 +196,12 @@ class GeventResponse(object):
status = None status = None
headers = None headers = None
response_length = None sent = None
def __init__(self, status, headers, clength): def __init__(self, status, headers, clength):
self.status = status self.status = status
self.headers = headers self.headers = headers
self.response_length = clength self.sent = clength
class PyWSGIHandler(pywsgi.WSGIHandler): class PyWSGIHandler(pywsgi.WSGIHandler):