From d516059c84d19961b6c3947c3638aadc18950e46 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torma=20Krist=C3=B3f?= Date: Wed, 29 Apr 2020 23:00:55 +0200 Subject: [PATCH] use native content_length --- src/resources.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/resources.py b/src/resources.py index 9d7e443..684ece8 100644 --- a/src/resources.py +++ b/src/resources.py @@ -75,7 +75,7 @@ class SampleResource(Resource): 'wave.wav', soundfile, soundfile.content_type, - {'Content-Length': len(soundfile)})}) + {'Content-Length': soundfile.content_length})}) rabbitmq_channel.basic_publish( exchange=RABBITMQ_EXCHANGE, routing_key='feature',