Skip to content

Commit fa020c0

Browse files
committed
Fix client format -> mimetype conversion
1 parent b08de9d commit fa020c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/camera/client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ func (c *client) Images(
232232
// keep everything lazy encoded by default, if type is unknown, attempt to decode it
233233
for _, img := range resp.Images {
234234
if img.MimeType == "" {
235-
img.MimeType = img.Format.String()
235+
img.MimeType = utils.FormatToMimeType[img.Format]
236236
}
237237
namedImg, err := NamedImageFromBytes(img.Image, img.SourceName, img.MimeType)
238238
if err != nil {

0 commit comments

Comments
 (0)