serve video with video/webm

This commit is contained in:
j 2011-12-29 01:34:12 +05:30
parent 2d25d7c3c8
commit 5de2461eb6

View file

@ -155,7 +155,7 @@ class Server(Resource):
if path: if path:
print itemId, filename, 'use', path print itemId, filename, 'use', path
request.headers['Access-Control-Allow-Origin'] = '*' request.headers['Access-Control-Allow-Origin'] = '*'
f = File(path) f = File(path, 'video/webm')
f.isLeaf = True f.isLeaf = True
return f return f
else: else: