Ticket #12470: base64_fix_cookie.diff

File base64_fix_cookie.diff, 458 bytes (added by Sean Brant, 15 years ago)
Line 
10a1
2> import base64
3115a117,118
4> for message in messages:
5> message.message = base64.b64encode(message.message)
6136c139,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
Back to Top