Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Encode user data to utf-8 when creating a server
This is needed for data that we don't read from IO directly, since we're base64-encoding the user data, and this requires ther user data to not be of the unicode type. We're being tolerant, as we'll accept user data that is already in a str object. Fixes: bug 1049161 Change-Id: I4320670de564c8029c7aef14da2492c6f8752efe
- Loading branch information
Showing
2 changed files
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters