Skip to content

Commit

Permalink
Fix mime_type while uploading scorecards (#617)
Browse files Browse the repository at this point in the history
  • Loading branch information
shrutiparabgoogle authored Jun 21, 2022
1 parent 93eeef2 commit 3bc985f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/registry/scoring/scorecard.go
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ func uploadScoreCard(ctx context.Context, client connection.Client, resource pat
artifact := &rpc.Artifact{
Name: fmt.Sprintf("%s/artifacts/%s", resource.ResourceName().String(), scoreCard.GetId()),
Contents: artifactBytes,
MimeType: patch.MimeTypeForKind("Score"),
MimeType: patch.MimeTypeForKind("ScoreCard"),
}
log.Debugf(ctx, "Uploading %s", artifact.GetName())
if err = core.SetArtifact(ctx, client, artifact); err != nil {
Expand Down

0 comments on commit 3bc985f

Please sign in to comment.