Skip to content

Commit

Permalink
Remove headers
Browse files Browse the repository at this point in the history
  • Loading branch information
Archmonger committed Nov 15, 2024
1 parent 4118d9d commit d5d84cd
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/servestatic/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ def __init__(
self.closed = False

async def _execute(self, func, *args):
"""Run a function in a dedicated thread (specific to this class instance)."""
"""Run a function in a dedicated thread (specific to each AsyncFile instance)."""
if self.loop is None:
self.loop = asyncio.get_event_loop()
with self.lock:
Expand Down
2 changes: 1 addition & 1 deletion tests/test_asgi.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ def test_wrong_method_type(application, test_files):
def test_large_static_file(application, test_files):
scope = AsgiScopeEmulator({
"path": "/static/large-file.txt",
"headers": [(b"host", b"127.0.0.1:8000")],
"headers": [],
})
receive = AsgiReceiveEmulator()
send = AsgiSendEmulator()
Expand Down
2 changes: 1 addition & 1 deletion tests/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ def body(self):

@property
def body_count(self):
"""Return the number of body messages."""
"""Return the number messages that contain body content."""
return sum(bool(msg.get("body")) for msg in self.message)

@property
Expand Down

0 comments on commit d5d84cd

Please sign in to comment.