From dcef0ecd506864e8a3631e106931884ea6fd3c42 Mon Sep 17 00:00:00 2001 From: Samuel Gaist <samuel.gaist@idiap.ch> Date: Thu, 26 Apr 2018 14:14:53 +0200 Subject: [PATCH] [algorithms][api] Fix initialization of binary variable content --- beat/web/algorithms/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/beat/web/algorithms/api.py b/beat/web/algorithms/api.py index 1cae18b5a..d85922e0f 100755 --- a/beat/web/algorithms/api.py +++ b/beat/web/algorithms/api.py @@ -182,7 +182,7 @@ def binary(request, author_name, object_name, version=None): file = request.FILES['binary'] - binary_data = '' + binary_data = b'' for chunk in file.chunks(): binary_data += chunk -- GitLab