Commit 6da48b61b875a91280b9787b4b2d396a714ce40b

Authored by Erickson Silva
1 parent 623057ae
Exists in devel

[TranslationServer] Adiciona encode no endpoint de download dos bundles

Showing 1 changed file with 2 additions and 0 deletions   Show diff stats
src/TranslationServer.py
... ... @@ -129,6 +129,8 @@ def load_statistics_page():
129 129 @app.route("/<platform>/<sign>", methods=['GET'])
130 130 @check_run_mode
131 131 def get_sign(platform, sign):
  132 + platform = platform.encode("UTF-8")
  133 + sign = sign.encode("UTF-8")
132 134 if " " in sign or platform not in BUNDLES_PATH: abort(400)
133 135 path = BUNDLES_PATH[platform]
134 136 bundle_path = os.path.join(path, sign)
... ...