fix(glance): get wrong format when saving image from stream (#20107)

This commit is contained in:
Zexi Li
2024-04-23 11:17:34 +08:00
committed by GitHub
parent 15bd94a0b6
commit 172b0ef49e
+1
View File
@@ -538,6 +538,7 @@ func (self *SImage) SaveImageFromStream(reader io.Reader, totalSize int64, calCh
if err != nil {
return err
}
format = string(img.Format)
virtualSizeBytes = img.SizeBytes
var fastChksum string