From: Roman Bazalevsky Date: Thu, 23 Jul 2015 23:08:18 +0000 (+0300) Subject: Content-Type fixed X-Git-Url: https://git.rvb.name/vpproxy.git/commitdiff_plain/c2d718aaa1c9aed7893892bf0b98e5f1b6e4336f?ds=inline Content-Type fixed --- 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")