Allow d.a.c to serve webm and mp4

Change-Id: I8c127642ee8bbeb5eda2cae0aaf2d0e902492a7a
This commit is contained in:
Roman Nurik
2011-12-22 16:44:39 -08:00
parent 93d610d59a
commit 9fe60c34a4

View File

@@ -341,6 +341,14 @@ class MemcachedZipHandler(webapp.RequestHandler):
self.response.headers['Content-Type'] = 'image/svg+xml'
self.SetCachingHeaders(mustRevalidate)
self.response.out.write(resp_data)
elif name.endswith('.mp4'):
self.response.headers['Content-Type'] = 'video/mp4'
self.SetCachingHeaders(mustRevalidate)
self.response.out.write(resp_data)
elif name.endswith('.webm'):
self.response.headers['Content-Type'] = 'video/webm'
self.SetCachingHeaders(mustRevalidate)
self.response.out.write(resp_data)
return True
def GetFromStore(self, file_path):