Skip to content

Commit

Permalink
fix: 修复X-Jupiter-InlinePayloadHash返回错误 #1270
Browse files Browse the repository at this point in the history
  • Loading branch information
cnlkl committed Oct 26, 2023
1 parent 782538e commit 70193bd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,7 @@ class DdcLocalRepository(
val artifactInfo = context.artifactInfo as ReferenceArtifactInfo
val blobs = refResolver.getReferencedBlobs(context.projectId, context.repoName, cb)
if (blobs.size == 1) {
context.response.addHeader(HEADER_NAME_INLINE_PAYLOAD_HASH, blobs[0].toString())
context.response.addHeader(HEADER_NAME_INLINE_PAYLOAD_HASH, blobs[0].blobId.toString())
blobToArtifactResource(context, blobs[0], responseType)
} else if (blobs.isEmpty()) {
null
Expand Down

0 comments on commit 70193bd

Please sign in to comment.