web: ensure torrent keys are always str

Make sure that we aren't sending unicode strings as keys, always
map them with str.
This commit is contained in:
Damien Churchill 2011-10-05 01:26:11 +01:00
parent e8506b925f
commit 39d19b5afd
1 changed files with 1 additions and 1 deletions

View File

@ -614,7 +614,7 @@ class WebApi(JSONComponent):
@export @export
def get_torrent_status(self, torrent_id, keys): def get_torrent_status(self, torrent_id, keys):
return component.get("SessionProxy").get_torrent_status(torrent_id, keys) return component.get("SessionProxy").get_torrent_status(torrent_id, map(str, keys))
@export @export
def get_torrent_files(self, torrent_id): def get_torrent_files(self, torrent_id):