#180: Serve pages with correct MIME type to browsers which understand it ------------------------+--------------------------------------------------- Reporter: vengmark | Owner: Type: defect | Status: new Priority: major | Milestone: v1.0 Component: *general* | Version: Resolution: | Keywords: ------------------------+---------------------------------------------------
Comment (by vengmark): Example code to assign the correct content type from http://www.xml.com/pub/a/2003/03/19/dive-into-xml.html: {{{ import os if os.environ.get('HTTP_ACCEPT', '').find('application/xhtml+xml') > -1: print 'Content-type: application/xhtml+xml' else: print 'Content-type: text/html' }}} -- Ticket URL: <http://invenio-software.org/ticket/180#comment:1> Invenio <http://invenio-software.org>