Example #1
0
 def is_html(self, response, encoding):
     ct_hdrs = response.info().getheaders("content-type")
     url = response.geturl()
     # XXX encoding
     return _is_html(ct_hdrs, url, self._allow_xhtml)
Example #2
0
 def is_html(self, response, encoding):
     ct_hdrs = response.info().getheaders("content-type")
     url = response.geturl()
     # XXX encoding
     return _is_html(ct_hdrs, url, self._allow_xhtml)