Enable compression for manifest.json (#110229)

Now that compression is ~5x faster than base zlib, it makes
sense to compress this
This commit is contained in:
J. Nick Koston
2024-02-10 18:45:21 -06:00
committed by GitHub
parent a5cc0ae890
commit 2f7d71347e

View File

@@ -644,9 +644,11 @@ class ManifestJSONView(HomeAssistantView):
@callback
def get(self, request: web.Request) -> web.Response:
"""Return the manifest.json."""
return web.Response(
response = web.Response(
text=MANIFEST_JSON.json, content_type="application/manifest+json"
)
response.enable_compression()
return response
@websocket_api.websocket_command(