docs: Allow d.a.c. to serve .OGV

This is necessary for HTML5 video in Firefox.

Change-Id: Ifcc39c338db64aa6c05418c1f3235bda62081f9b
This commit is contained in:
Roman Nurik
2012-01-05 16:31:59 -08:00
parent 9fe60c34a4
commit 5621efe11c

View File

@@ -349,6 +349,10 @@ class MemcachedZipHandler(webapp.RequestHandler):
self.response.headers['Content-Type'] = 'video/webm'
self.SetCachingHeaders(mustRevalidate)
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
def GetFromStore(self, file_path):