Download Install Tutorial Docs FAQ Tools WikiLicense Team IRC Planet Involvement Shop Book

Changeset 901

Show
Ignore:
Timestamp:
12/30/05 05:27:22
Author:
lawouach
Message:

The HTTTPErrorTemplate was using XHTML but the response content-type was set to text/html which is wrong. Since many user agents can't understand XHTML when using the correct content type, I've changed the template to use regular HTML

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/cherrypy/_cputil.py

    r887 r901  
    153153 
    154154 
    155 _HTTPErrorTemplate = '''<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" 
    156   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 
    157 <html> 
     155_HTTPErrorTemplate = '''<html> 
    158156<head> 
    159     <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/
     157    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"></meta
    160158    <title>%(status)s</title> 
    161159    <style type="text/css"> 
     
    176174        <pre id="traceback">%(traceback)s</pre> 
    177175    <div id="poweredBy"> 
    178     <span>Powered by <a href="http://www.cherrypy.org">Cherrypy %(version)s</a></span> 
     176    <span>Powered by <a href="http://www.cherrypy.org">CherryPy %(version)s</a></span> 
    179177    </div> 
    180178    </body> 

Hosted by WebFaction

Log in as guest/cpguest to create tickets