Skip to content

Commit fe45c1b

Browse files
committed
Rebase changes
1 parent c781d67 commit fe45c1b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

starlette/responses.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ async def __call__(self, scope: Scope, receive: Receive, send: Send) -> None:
345345
http_if_range = headers.get("if-range")
346346

347347
if http_range is None or (http_if_range is not None and not self._should_use_range(http_if_range, stat_result)):
348-
await self._handle_simple(send, send_header_only)
348+
await self._handle_simple(scope, send, send_header_only)
349349
else:
350350
try:
351351
ranges = self._parse_range_header(http_range, stat_result.st_size)
@@ -364,7 +364,7 @@ async def __call__(self, scope: Scope, receive: Receive, send: Send) -> None:
364364
if self.background is not None:
365365
await self.background()
366366

367-
async def _handle_simple(self, send: Send, send_header_only: bool) -> None:
367+
async def _handle_simple(self, scope: Scope, send: Send, send_header_only: bool) -> None:
368368
await send({"type": "http.response.start", "status": self.status_code, "headers": self.raw_headers})
369369
if send_header_only:
370370
await send({"type": "http.response.body", "body": b"", "more_body": False})

0 commit comments

Comments
 (0)