1
0
Fork 0

update crc header key

pull/1063/head
Rob Herley 2022-04-27 22:22:35 +00:00 committed by GitHub
parent 9e285cc3fa
commit d5c547c19f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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', () => {

View File

@ -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