Ensure HttpUrl.set_title_from_content() is only called when the content is allowed to be retrieved.

This commit is contained in:
Bastian Kleineidam 2010-09-29 19:26:03 +02:00
parent 840538d12a
commit e0f4097eb0

View file

@ -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