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

Changeset 1397

Show
Ignore:
Timestamp:
10/12/06 16:36:27
Author:
lawouach
Message:

Fixed #542. For some reason the fix was already there except for the unit test.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/cherrypy-2.x/cherrypy/test/test_core.py

    r1318 r1397  
    237237 
    238238    class Headers(Test): 
     239        def default(self, headername):  
     240            """Spit back out the value for the requested header."""  
     241            return cherrypy.request.headers[headername] 
    239242         
    240243        def doubledheaders(self): 
     
    743746                        "en-gb;q=0.8\n" 
    744747                        "en;q=0.7") 
    745      
     748         
     749        # Test that two request headers are collapsed into one. 
     750        # See http://www.cherrypy.org/ticket/542. 
     751        self.getPage("/headers/Accept-Charset", 
     752                     headers=[("Accept-Charset", "iso-8859-5"), 
     753                              ("Accept-Charset", "unicode-1-1;q=0.8")]) 
     754        self.assertBody("iso-8859-5, unicode-1-1;q=0.8") 
     755         
    746756    def testHeaders(self): 
    747757        # Tests that each header only appears once, regardless of case. 

Hosted by WebFaction

Log in as guest/cpguest to create tickets