Browse Source

Preserve headers in svg.FixUnsupported

DarthSim 2 năm trước cách đây
mục cha
commit
5f3d551f25
1 tập tin đã thay đổi với 3 bổ sung2 xóa
  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)