예제 #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)
예제 #2
0
파일: _html.py 프로젝트: albertz/mechanize
 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)