use native content_length
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Torma Kristóf 2020-04-29 23:00:55 +02:00
parent 7abec4e257
commit d516059c84
Signed by: tormakris
GPG Key ID: DC83C4F2C41B1047

View File

@ -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',