ServerKit is a lightweight, modern server control panel for managing web applications, databases, and services on your VPS or dedicated server. Built with Python/Flask backend and React frontend.
Python astracloudflarecontrol-panelcyberpaneldnsfablehosting-control-panelhosting-panelkimi-k3server-managementserverkitubuntu-web-panelwebserver
test: read nginx configs as UTF-8 in CSP header test
Juan Denis3468afe48fe6
diff --git a/backend/tests/test_security_headers.py b/backend/tests/test_security_headers.pyindex 58d6cebc..2d3f06be 100644--- a/backend/tests/test_security_headers.py+++ b/backend/tests/test_security_headers.py@@ -71,7 +71,7 @@ def test_csp_allows_only_github_as_an_external_form_target(debug):@pytest.mark.parametrize('config_path', PANEL_NGINX_CONFIGS)def test_panel_nginx_csp_allows_github_manifest_submission(config_path):- config = config_path.read_text()+ config = config_path.read_text(encoding='utf-8')assert "form-action 'self' https://github.com;" in configassert "form-action 'self';" not in config