Skip to content

Commit

Permalink
update crc header key
Browse files Browse the repository at this point in the history
  • Loading branch information
robherley committed Apr 27, 2022
1 parent 9e285cc commit d5c547c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/artifact/__tests__/util.test.ts
Expand Up @@ -96,7 +96,7 @@ describe('Utils', () => {
expect(headers['x-tfs-filelength']).toEqual(uncompressedLength)
expect(headers['Content-Length']).toEqual(size)
expect(headers['Content-Range']).toEqual(range)
expect(headers['X-GH-Actions-CRC64']).toEqual(digest)
expect(headers['x-actions-result-crc64']).toEqual(digest)
})

it('Test constructing upload headers with only required parameter', () => {
Expand Down
2 changes: 1 addition & 1 deletion packages/artifact/src/internal/utils.ts
Expand Up @@ -205,7 +205,7 @@ export function getUploadHeaders(
requestOptions['Content-Range'] = contentRange
}
if (digest) {
requestOptions['X-GH-Actions-CRC64'] = digest
requestOptions['x-actions-result-crc64'] = digest
}

return requestOptions
Expand Down

0 comments on commit d5c547c

Please sign in to comment.