mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-05-28 07:43:59 +00:00
Ensure HttpUrl.set_title_from_content() is only called when the content is allowed to be retrieved.
This commit is contained in:
parent
840538d12a
commit
e0f4097eb0
1 changed files with 4 additions and 0 deletions
|
|
@ -643,6 +643,10 @@ Use URL `%(newurl)s' instead for checking.""") % {
|
|||
return False
|
||||
return True
|
||||
|
||||
def set_title_from_content (self):
|
||||
if self.method_get_allowed:
|
||||
super(HttpUrl, self).set_title_from_content()
|
||||
|
||||
def is_html (self):
|
||||
"""
|
||||
See if this URL points to a HTML file by looking at the
|
||||
|
|
|
|||
Loading…
Reference in a new issue