def reset_content_type_for_mobile(request, response): """ http://www.google.com/support/webmasters/bin/answer.py?answer=40348 """ ct, doctype = get_content_type_and_doctype(request) response.setHeader("content-type", ct)
def render(self): content_type, doctype = get_content_type_and_doctype(self.request) return doctype