tests - ignore case when performing test

This commit is contained in:
florian 2022-07-13 21:56:59 +02:00
parent 0a996bf123
commit 2e0542dbb0
2 changed files with 2 additions and 1 deletions

View File

@ -5,6 +5,7 @@
- Fix various documentation errors/typos and add various enhancements
- Fix ui.env not read when using Linux integration
- Fix check if BunkerNet is activated on default server
- Fix request crash when mmdb lookup is fails
- Add \*_CUSTOM_CONF_\* setting to automatically add custom config files from setting value
- Add DENY_HTTP_STATUS setting to choose standard 403 error page (default) or 444 to close connection when access is denied
- Add CORS (Cross-Origin Resource Sharing) core plugin

View File

@ -101,7 +101,7 @@ class Test(ABC) :
if search(ex_domain, ex_url) :
ex_url = sub(ex_domain, test_domain, ex_url)
r = get(ex_url, timeout=5)
return test["string"] in r.text
return test["string"].casefold() in r.text.casefold()
except :
self._log("exception while running test of type " + test["type"] + " on URL " + test["url"] + "\n" + format_exc(), error=True)
return False