diff --git a/tremolo/lib/http_protocol.py b/tremolo/lib/http_protocol.py index 6824f42..176cf2e 100644 --- a/tremolo/lib/http_protocol.py +++ b/tremolo/lib/http_protocol.py @@ -230,7 +230,7 @@ def send_continue(self): self.queue[1].put_nowait(None) async def _handle_request(self, request): - response = request.create_response() + response = request.accept() timer = self.set_handler_timeout(self.options['app_handler_timeout']) try: diff --git a/tremolo/lib/http_request.py b/tremolo/lib/http_request.py index 234cd68..f5776a6 100644 --- a/tremolo/lib/http_request.py +++ b/tremolo/lib/http_request.py @@ -115,7 +115,7 @@ def uid(self, length=32, *, ts_offset=0): return prefix + os.urandom(length - len(prefix)) - def create_response(self): + def accept(self): return HTTPResponse(self) def clear(self): diff --git a/tremolo/tremolo.py b/tremolo/tremolo.py index d5d78be..8852572 100644 --- a/tremolo/tremolo.py +++ b/tremolo/tremolo.py @@ -25,7 +25,7 @@ from .lib.executors import MultiThreadExecutor from .lib.locks import ServerLock -__version__ = '0.5.2' +__version__ = '0.5.3' class Tremolo: