Browse Source

Preserve headers in svg.FixUnsupported

DarthSim 2 years ago
parent
commit
5f3d551f25
1 changed files with 3 additions and 2 deletions
  1. 3 2
      svg/svg.go

+ 3 - 2
svg/svg.go

@@ -194,8 +194,9 @@ func FixUnsupported(data *imagedata.ImageData) (*imagedata.ImageData, bool, erro
 			}
 
 			newData := imagedata.ImageData{
-				Data: buf.Bytes(),
-				Type: data.Type,
+				Data:    buf.Bytes(),
+				Type:    data.Type,
+				Headers: data.Headers,
 			}
 			newData.SetCancel(cancel)