Ryuno-Ki/webmention-tools

handle 'text/html; charset=...' as well as plain text/html

Ryuno-Ki opened this issue · 1 comments

Closing, since my implementation changed rapidly.

I make it a condition, that the Content-Type starts with text/html in

accepted_content_type = content_type.startswith("text/html")

In case, that method return False, I am not further progessing on discovery in

if is_successful_response(response):
resp
if is_successful_response(response):
.
Thus, the webmention will return None.

@snarfed You may want to check, whether these changes make sense downstream for you.