Commits

fs  committed ab6d9fb

Python 2.7 compatibility for test suite: httplib no longer converts values to string in Python 2.7 (Patch by Martin Bacovsky, Fedora/Red Hat)

  • Participants
  • Parent commits 00d6344
  • Branches cherrypy-2.x

Comments (0)

Files changed (1)

File cherrypy/test/webtest.py

                                 skip_accept_encoding=True)
             
             for key, value in headers:
-                conn.putheader(key, value)
+                conn.putheader(key, str(value))
             conn.endheaders()
             
             if body is not None: