Skip to content

Commit 5ba60dc

Browse files
committed
Fix config image base64 handling
1 parent c61698f commit 5ba60dc

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

config/config.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,10 @@ func Load(data []byte) (Config, error) {
167167
conf.Images[i].Type = ImageTypeUrl
168168

169169
} else {
170+
// if Value is base64, empty the Value with the base64 string, we already have data.
171+
// See parse.go
170172
conf.Images[i].Data = data
173+
conf.Images[i].Value = ""
171174
conf.Images[i].Type = ImageTypeBase64
172175
}
173176

0 commit comments

Comments
 (0)