Ticket #5636 (new defect)
unicode encoding error in cookie
| Reported by: | Dave Abrahams <dave@…> | Owned by: | cboos |
|---|---|---|---|
| Priority: | normal | Milestone: | 0.11-retriage |
| Component: | general | Version: | devel |
| Severity: | normal | Keywords: | unicode cookie |
| Cc: |
Description
I ran into a situation where the cookie was unicode but the rest of the code expected a str; the following made it go away:
-
trac/web/api.py
505 505 506 506 cookies = self.outcookie.output(header='') 507 507 for cookie in cookies.splitlines(): 508 self._outheaders.append(('Set-Cookie', cookie.strip()))508 self._outheaders.append(('Set-Cookie', str(cookie.strip()))) 509 509 510 510 511 511 class IAuthenticator(Interface):
Attachments
Change History
Note: See
TracTickets for help on using
tickets.


