web/request.py
changeset 2552 1ea2f2ff5dca
parent 2476 1294a6bdf3bf
child 2556 4608d259c3db
equal deleted inserted replaced
2513:497e5807db41 2552:1ea2f2ff5dca
   707                           or 'Opera' in useragent):
   707                           or 'Opera' in useragent):
   708             return False
   708             return False
   709         return True
   709         return True
   710 
   710 
   711     def html_content_type(self):
   711     def html_content_type(self):
   712         if self.xhtml_browser():
   712         if not self.vreg.config['force-html-content-type'] and self.xhtml_browser():
   713             return 'application/xhtml+xml'
   713             return 'application/xhtml+xml'
   714         return 'text/html'
   714         return 'text/html'
   715 
   715 
   716 from cubicweb import set_log_methods
   716 from cubicweb import set_log_methods
   717 set_log_methods(CubicWebRequestBase, LOGGER)
   717 set_log_methods(CubicWebRequestBase, LOGGER)