projects
/
vpproxy.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
68a65fd
)
Content-Type fixed
author
Roman Bazalevsky
<rvb@rvb.name>
Thu, 23 Jul 2015 23:08:18 +0000
(
02:08
+0300)
committer
Roman Bazalevsky
<rvb@rvb.name>
Thu, 23 Jul 2015 23:08:18 +0000
(
02:08
+0300)
vphttp.py
patch
|
blob
|
history
diff --git
a/vphttp.py
b/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")