1
0
Fork 0
mirror of https://gitea.com/actions/upload-artifact.git synced 2024-08-16 09:49:51 +02:00
This commit is contained in:
Rob Herley 2023-12-06 18:52:51 -05:00
parent 1c268a9bf7
commit b0b830af8c
No known key found for this signature in database
GPG key ID: D1602042C3543B06

5
dist/index.js vendored
View file

@ -5663,11 +5663,10 @@ class ArtifactHttpClient {
try { try {
const response = yield operation(); const response = yield operation();
const statusCode = response.message.statusCode; const statusCode = response.message.statusCode;
const raw = yield response.readBody(); const body = yield response.readBody();
const body = JSON.parse(raw);
(0, core_1.debug)(`[Response] - ${response.message.statusCode}`); (0, core_1.debug)(`[Response] - ${response.message.statusCode}`);
(0, core_1.debug)(`Headers: ${JSON.stringify(response.message.headers, null, 2)}`); (0, core_1.debug)(`Headers: ${JSON.stringify(response.message.headers, null, 2)}`);
(0, core_1.debug)(`Body: ${JSON.stringify(body, null, 2)}`); (0, core_1.debug)(`Body: ${body}`);
if (this.isSuccessStatusCode(statusCode)) { if (this.isSuccessStatusCode(statusCode)) {
return { response, body }; return { response, body };
} }