From c2d718aaa1c9aed7893892bf0b98e5f1b6e4336f Mon Sep 17 00:00:00 2001 From: Roman Bazalevsky Date: Fri, 24 Jul 2015 02:08:18 +0300 Subject: [PATCH 1/1] Content-Type fixed --- vphttp.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/vphttp.py b/vphttp.py index 5670965..5237f21 100644 --- a/vphttp.py +++ b/vphttp.py @@ -284,11 +284,14 @@ class HTTPHandler(BaseHTTPServer.BaseHTTPRequestHandler): del self.video.info().dict['server'] if self.video.info().dict.has_key('transfer-encoding'): del self.video.info().dict['transfer-encoding'] + if self.video.info().dict.has_key('content-type'): + del self.video.info().dict['content-type'] if self.video.info().dict.has_key('keep-alive'): del self.video.info().dict['keep-alive'] for key in self.video.info().dict: self.send_header(key, self.video.info().dict[key]) + self.send_header("Content-Type", "video/mpeg") # End headers. Next goes video data self.end_headers() logger.debug("Headers sent") -- 2.34.1