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

* commit '93d610d59aa9cbbaa99f760542252f91698103eb':
  DO NOT MERGE Cherrypick from master: Allow d.a.c. to serve SVG files
This commit is contained in:
Roman Nurik
2011-12-20 12:04:33 -08:00
committed by Android Git Automerger

View File

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