mirror of
https://git.mirrors.martin98.com/https://github.com/actions/toolkit
synced 2025-11-18 18:01:07 +08:00
one too many parses
This commit is contained in:
parent
715b1acc05
commit
8c317a0e59
@ -80,11 +80,10 @@ class ArtifactHttpClient implements Rpc {
|
||||
try {
|
||||
const response = await operation()
|
||||
const statusCode = response.message.statusCode
|
||||
const raw = await response.readBody()
|
||||
const body = JSON.parse(raw)
|
||||
const body = await response.readBody()
|
||||
debug(`[Response] - ${response.message.statusCode}`)
|
||||
debug(`Headers: ${JSON.stringify(response.message.headers, null, 2)}`)
|
||||
debug(`Body: ${JSON.stringify(body, null, 2)}`)
|
||||
debug(`Body: ${body}`)
|
||||
|
||||
if (this.isSuccessStatusCode(statusCode)) {
|
||||
return {response, body}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user