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

Changeset 1405

Show
Ignore:
Timestamp:
10/21/06 16:06:44
Author:
fumanchu
Message:

Fix for Python 2.3 accept-encoding issues (extra 'identity' value inserted, which broke gzip tests).

Files:

Legend:

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

    r1350 r1405  
    440440            # skip_accept_encoding argument added in python version 2.4 
    441441            if sys.version_info < (2, 4): 
     442                def putheader(self, header, value): 
     443                    if header == 'Accept-Encoding' and value == 'identity': 
     444                        return 
     445                    self.__class__.putheader(self, header, value) 
     446                import new 
     447                conn.putheader = new.instancemethod(putheader, conn, conn.__class__) 
    442448                conn.putrequest(method.upper(), url, skip_host=True) 
    443449            else: 

Hosted by WebFaction

Log in as guest/cpguest to create tickets