From 3e237ec794f96cacf606b1f192387e2b8dd44bd6 Mon Sep 17 00:00:00 2001 From: Roman A <121314722+GameRoMan@users.noreply.github.com> Date: Mon, 2 Jun 2025 21:42:26 +0100 Subject: [PATCH] fix typos --- src/hypercorn/protocol/h11.py | 2 +- src/hypercorn/protocol/h2.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/hypercorn/protocol/h11.py b/src/hypercorn/protocol/h11.py index c3c6e0f3..680291aa 100644 --- a/src/hypercorn/protocol/h11.py +++ b/src/hypercorn/protocol/h11.py @@ -303,7 +303,7 @@ async def _check_protocol(self, event: h11.Request) -> None: has_body = True # h2c Upgrade requests with a body are a pain as the body must - # be fully recieved in HTTP/1.1 before the upgrade response + # be fully received in HTTP/1.1 before the upgrade response # and HTTP/2 takes over, so Hypercorn ignores the upgrade and # responds in HTTP/1.1. Use a preflight OPTIONS request to # initiate the upgrade if really required (or just use h2). diff --git a/src/hypercorn/protocol/h2.py b/src/hypercorn/protocol/h2.py index b19a2bcc..bc7e1db3 100644 --- a/src/hypercorn/protocol/h2.py +++ b/src/hypercorn/protocol/h2.py @@ -143,8 +143,8 @@ async def initiate( self.task_group.spawn(self.send_task) async def send_task(self) -> None: - # This should be run in a seperate task to the rest of this - # class. This allows it seperately choose when to send, + # This should be run in a separate task to the rest of this + # class. This allows it separately choose when to send, # crucially in what order. while not self.closed: try: @@ -350,7 +350,7 @@ async def _create_stream(self, request: h2.events.RequestReceived) -> None: try: self.priority.insert_stream(request.stream_id) except priority.DuplicateStreamError: - # Recieved PRIORITY frame before HEADERS frame + # Received PRIORITY frame before HEADERS frame pass else: self.priority.block(request.stream_id)