Changeset 13

Show
Ignore:
Timestamp:
02/14/07 14:08:55 (2 years ago)
Author:
kevin
Message:

fixes charset in content-type header for SOAP responses.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/tgwebservices/soap.py

    r12 r13  
    171171     
    172172    @tgexpose("genshi:tgwebservices.templates.soap", 
    173               content_type="text/xml", format="xml") 
     173              content_type="text/xml;charset=utf-8", format="xml") 
    174174    def index(self): 
    175175        """Processes SOAP requests and generates the responses.""" 
     
    223223     
    224224    @tgexpose("genshi:tgwebservices.templates.wsdl", format="xml", 
    225               content_type="text/xml") 
     225              content_type="text/xml;charset=utf-8") 
    226226    def api_wsdl(self, xmlsoap=False): 
    227227        """Produces the WSDL for this SOAP service.""" 
  • trunk/tgwebservices/tests/test_soap.py

    r12 r13  
    6363    output = cherrypy.response.body[0] 
    6464    print output 
    65     assert cherrypy.response.headers["Content-Type"] == "text/xml
     65    assert cherrypy.response.headers["Content-Type"] == "text/xml;charset=utf-8
    6666    root = et.fromstring(output) 
    6767    schema_elements = root.findall(".//{http://www.w3.org/2001/XMLSchema}element")