diff --git a/changedetectionio/templates/edit.html b/changedetectionio/templates/edit.html index 877dba6da..40b1101fd 100644 --- a/changedetectionio/templates/edit.html +++ b/changedetectionio/templates/edit.html @@ -157,7 +157,7 @@ User-Agent: wonderbra 1.0") }} {% if has_extra_headers_file %} Alert! Extra headers file found and will be added to this watch! {% else %} - Headers can be read from a textfile in your data-directory Read more here + Headers can be also read from a file in your data-directory Read more here {% endif %} diff --git a/changedetectionio/tests/test_request.py b/changedetectionio/tests/test_request.py index feaed72aa..06e518e16 100644 --- a/changedetectionio/tests/test_request.py +++ b/changedetectionio/tests/test_request.py @@ -280,6 +280,10 @@ def test_headers_textfile_in_request(client, live_server): # Give the thread time to pick it up wait_for_all_checks(client) + + res = client.get(url_for("edit_page", uuid="first")) + assert b"Extra headers file found and will be added to this watch" in res.data + # Not needed anymore os.unlink('test-datastore/headers.txt') os.unlink('test-datastore/headers-testtag.txt')