Commits

Robert Brewer  committed 0c080b2

Fix for #735 (Problem with multiple cookies and Python 2.5).

  • Participants
  • Parent commits 9aee4ba

Comments (0)

Files changed (1)

File cherrypy/_cprequest.py

         cookie = self.cookie.output()
         if cookie:
             for line in cookie.split("\n"):
+                if line.endswith("\r"):
+                    # Python 2.4 emits cookies joined by LF but 2.5+ by CRLF.
+                    line = line[:-1]
                 name, value = line.split(": ", 1)
                 h.append((name, value))