Add default headers to webserver responses (#97784)

* Add default headers to webserver responses

* Set default server header

* Fix other tests
This commit is contained in:
Franck Nijhof
2023-08-07 05:25:13 +02:00
committed by GitHub
parent 3df71eca45
commit 369a484a78
4 changed files with 85 additions and 0 deletions

View File

@@ -117,6 +117,7 @@ def test_secrets(mock_is_file, event_loop, mock_hass_config_yaml: None) -> None:
"login_attempts_threshold": -1,
"server_port": 8123,
"ssl_profile": "modern",
"use_x_frame_options": True,
}
assert res["secret_cache"] == {
get_test_config_dir("secrets.yaml"): {"http_pw": "http://google.com"}