Commits

Anonymous committed 890172a

fix CherryPy regression with Python 2.5+: Always use \n as separator for cookie lines (#995)

Comments (0)

Files changed (1)

cherrypy/_cphttptools.py

         # Transform our header dict into a sorted list of tuples.
         self.header_list = self.headers.sorted_list(protocol=self.version)
         
-        cookie = self.simple_cookie.output()
+        cookie = self.simple_cookie.output(sep="\n")
         if cookie:
             for line in cookie.split("\n"):
                 name, value = line.split(": ", 1)