mirror of
https://git.mirrors.martin98.com/https://github.com/actions/toolkit
synced 2026-01-03 23:42:54 +08:00
update crc header key
This commit is contained in:
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…
x
Reference in New Issue
Block a user