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

Changeset 1765

Show
Ignore:
Timestamp:
10/26/07 01:31:36
Author:
fumanchu
Message:

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

Files:

Legend:

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

    r1737 r1765  
    836836        if cookie: 
    837837            for line in cookie.split("\n"): 
     838                if line.endswith("\r"): 
     839                    # Python 2.4 emits cookies joined by LF but 2.5+ by CRLF. 
     840                    line = line[:-1] 
    838841                name, value = line.split(": ", 1) 
    839842                h.append((name, value)) 

Hosted by WebFaction

Log in as guest/cpguest to create tickets