Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/hypercorn/protocol/h11.py
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down
6 changes: 3 additions & 3 deletions src/hypercorn/protocol/h2.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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)
Expand Down