diff options
Diffstat (limited to 'cmd')
| -rw-r--r-- | cmd/xedn/main.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cmd/xedn/main.go b/cmd/xedn/main.go index 1e4104e..48da62f 100644 --- a/cmd/xedn/main.go +++ b/cmd/xedn/main.go @@ -201,6 +201,10 @@ func (dc *Cache) Load(dir string, w io.Writer) error { return err } + if h.Get("Content-Type") == "" && filepath.Ext(dir) == ".svg" { + h.Set("Content-Type", "image/svg+xml") + } + data = bkt.Get([]byte("body")) if data == nil { return ErrNotCached |
