Skip to content
Merged
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 homeassistant/components/hassio/ingress.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ async def _handle_request(
if (
hdrs.CONTENT_LENGTH in result.headers
and int(result.headers.get(hdrs.CONTENT_LENGTH, 0)) < 4194000
):
) or result.status in (204, 304):
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should use (HTTPStatus.NO_CONTENT, HTTPStatus.NOT_MODIFIED) and should have a test that proves that these 2 statuses return Response and not StreamResponse

# Return Response
body = await result.read()
return web.Response(
Expand Down