Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Created by .gitignore support plugin (hsz.mobi)

.DS_Store

.vscode

### Python template
Expand Down
6 changes: 3 additions & 3 deletions docs/source/release-history.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
Release History
===============

In Development
--------------
Version 0.1.6 (2025-01-24)
--------------------------

n/a
Remove stray logging statements that should not have been included in v0.1.5. (:issue:`194`)


Version 0.1.5 (2025-01-23)
Expand Down
1 change: 0 additions & 1 deletion web_monitoring_diff/content_type.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ def is_not_html(text, headers=None, check_options='normal'):
- `nosniff` uses the `Content-Type` header but does not sniff.
- `ignore` doesn’t do any checking at all.
"""
print(f'#is_not_html: check_options="{check_options}", headers={headers}, text={text[:500]}')
if headers and (check_options == 'normal' or check_options == 'nosniff'):
content_type = headers.get('Content-Type', '').split(';', 1)[0].strip()
if content_type and VALID_CONTENT_TYPE_PATTERN.match(content_type):
Expand Down