DO NOT MERGE Cherrypick from master: Allow d.a.c. to serve SVG files

Change-Id: I6d13b21bdafa70ea19d14a95b65476ba7c037d8c
This commit is contained in:
Roman Nurik
2011-12-20 10:54:44 -08:00
parent dc6a269f82
commit 93d610d59a

View File

@@ -337,6 +337,10 @@ class MemcachedZipHandler(webapp.RequestHandler):
self.response.headers['Content-Type'] = 'application/octet-stream' self.response.headers['Content-Type'] = 'application/octet-stream'
self.SetCachingHeaders(mustRevalidate) self.SetCachingHeaders(mustRevalidate)
self.response.out.write(resp_data) self.response.out.write(resp_data)
elif name.endswith('.svg'):
self.response.headers['Content-Type'] = 'image/svg+xml'
self.SetCachingHeaders(mustRevalidate)
self.response.out.write(resp_data)
return True return True
def GetFromStore(self, file_path): def GetFromStore(self, file_path):