mirror of https://github.com/actions/toolkit
update crc header key
parent
9e285cc3fa
commit
d5c547c19f
|
@ -96,7 +96,7 @@ describe('Utils', () => {
|
||||||
expect(headers['x-tfs-filelength']).toEqual(uncompressedLength)
|
expect(headers['x-tfs-filelength']).toEqual(uncompressedLength)
|
||||||
expect(headers['Content-Length']).toEqual(size)
|
expect(headers['Content-Length']).toEqual(size)
|
||||||
expect(headers['Content-Range']).toEqual(range)
|
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', () => {
|
it('Test constructing upload headers with only required parameter', () => {
|
||||||
|
|
|
@ -205,7 +205,7 @@ export function getUploadHeaders(
|
||||||
requestOptions['Content-Range'] = contentRange
|
requestOptions['Content-Range'] = contentRange
|
||||||
}
|
}
|
||||||
if (digest) {
|
if (digest) {
|
||||||
requestOptions['X-GH-Actions-CRC64'] = digest
|
requestOptions['x-actions-result-crc64'] = digest
|
||||||
}
|
}
|
||||||
|
|
||||||
return requestOptions
|
return requestOptions
|
||||||
|
|
Loading…
Reference in New Issue