Allow d.a.c. to serve SVG files
Change-Id: Ia652bd2f0a6a0dcfd17915dde5269bd8d37bceef
This commit is contained in:
@@ -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):
|
||||||
|
|||||||
Reference in New Issue
Block a user