Skip to content

Commit 474562c

Browse files
committed
Fix invalid json error which happens when the annotation is not zipped but base64 encoded
1 parent 1d06963 commit 474562c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

patch/annotation.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ func (a *Annotator) GetOriginalConfiguration(obj runtime.Object) ([]byte, error)
6565
if http.DetectContentType(decoded) == "application/zip" {
6666
return unZipAnnotation(decoded)
6767
}
68+
return decoded, nil
6869
}
6970

7071
return []byte(original), nil

0 commit comments

Comments
 (0)