Ticket #7183: wsgipatch.txt
| File wsgipatch.txt, 473 bytes (added by mbeattie, 1 week ago) |
|---|
| Line | |
|---|---|
| 1 | 13a14 |
| 2 | > import re |
| 3 | 147c148,153 |
| 4 | < self._cookies = http.parse_cookie(self.environ.get('HTTP_COOKIE', '')) |
| 5 | --- |
| 6 | > cookiestring = self.environ.get('HTTP_COOKIE', '') |
| 7 | > sessionfind = re.search("(sessionid=[0-9a-f]*)", cookiestring) |
| 8 | > if sessionfind == None: |
| 9 | > self._cookies = http.parse_cookie(cookiestring) |
| 10 | > else: |
| 11 | > self._cookies = http.parse_cookie(sessionfind.groups()[0]) |
