Content-Type fixed
authorRoman Bazalevsky <rvb@rvb.name>
Thu, 23 Jul 2015 23:08:18 +0000 (02:08 +0300)
committerRoman Bazalevsky <rvb@rvb.name>
Thu, 23 Jul 2015 23:08:18 +0000 (02:08 +0300)
vphttp.py

index 5670965c84638b5c31807658631677c132ec3c01..5237f21098a660841323c08a88e36fba00a5b883 100644 (file)
--- 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']
                     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])
                 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")
                 # End headers. Next goes video data
                 self.end_headers()
                 logger.debug("Headers sent")