Force response API to js to fix faulty system configs

closes #7147
This commit is contained in:
Matthias
2022-08-07 10:42:56 +02:00
parent 5182f755f1
commit e48e82232d
2 changed files with 9 additions and 1 deletions

View File

@@ -109,6 +109,9 @@ def test_api_ui_fallback(botclient, mocker):
rc = client_get(client, "/something")
assert rc.status_code == 200
rc = client_get(client, "/something.js")
assert rc.status_code == 200
# Test directory traversal without mock
rc = client_get(client, '%2F%2F%2Fetc/passwd')
assert rc.status_code == 200