Ticket #12470: base64_fix_cookie.diff
File base64_fix_cookie.diff, 458 bytes (added by , 15 years ago) |
---|
Line | |
---|---|
1 | 0a1 |
2 | > import base64 |
3 | 115a117,118 |
4 | > for message in messages: |
5 | > message.message = base64.b64encode(message.message) |
6 | 136c139,142 |
7 | < return json.loads(value, cls=MessageDecoder) |
8 | --- |
9 | > messages = json.loads(value, cls=MessageDecoder) |
10 | > for message in messages: |
11 | > message.message = base64.b64decode(message.message) |
12 | > return messages |