docs: Allow d.a.c. to serve .OGV
This is necessary for HTML5 video in Firefox. Change-Id: Ifcc39c338db64aa6c05418c1f3235bda62081f9b
This commit is contained in:
@@ -349,6 +349,10 @@ class MemcachedZipHandler(webapp.RequestHandler):
|
|||||||
self.response.headers['Content-Type'] = 'video/webm'
|
self.response.headers['Content-Type'] = 'video/webm'
|
||||||
self.SetCachingHeaders(mustRevalidate)
|
self.SetCachingHeaders(mustRevalidate)
|
||||||
self.response.out.write(resp_data)
|
self.response.out.write(resp_data)
|
||||||
|
elif name.endswith('.ogv'):
|
||||||
|
self.response.headers['Content-Type'] = 'video/ogg'
|
||||||
|
self.SetCachingHeaders(mustRevalidate)
|
||||||
|
self.response.out.write(resp_data)
|
||||||
return True
|
return True
|
||||||
|
|
||||||
def GetFromStore(self, file_path):
|
def GetFromStore(self, file_path):
|
||||||
|
|||||||
Reference in New Issue
Block a user