mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 12:59:34 +00:00
Fix improper usage of body attribute on web.Response. Should be text since we arent sending bytes (#23857)
This commit is contained in:
committed by
Pascal Vizeli
parent
128ce589e1
commit
6f9860b25e
@@ -81,7 +81,7 @@ def registration_context(registration: Dict) -> Context:
|
||||
|
||||
def empty_okay_response(headers: Dict = None, status: int = 200) -> Response:
|
||||
"""Return a Response with empty JSON object and a 200."""
|
||||
return Response(body='{}', status=status, content_type='application/json',
|
||||
return Response(text='{}', status=status, content_type='application/json',
|
||||
headers=headers)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user