From 64e8d616fc40f5dccb2a71501566d3848ee43adf Mon Sep 17 00:00:00 2001 From: spl0k Date: Sun, 20 Oct 2013 17:47:13 +0200 Subject: [PATCH] Won't handle content-length estimation This is actually a bad idea. If the estimated value is too low, clients might close the connection before receiving the whole file. --- api/media.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/api/media.py b/api/media.py index 0c4a564..2c2d43d 100755 --- a/api/media.py +++ b/api/media.py @@ -82,8 +82,6 @@ def stream_media(): else: response = send_file(res.path, mimetype = dst_mimetype) - # TODO handle estimateContentLength - res.play_count = res.play_count + 1 res.last_play = now() request.user.last_play = res