mirror of
https://code.forgejo.org/forgejo/upload-artifact.git
synced 2024-11-08 18:32:40 +00:00
r
This commit is contained in:
parent
1c268a9bf7
commit
b0b830af8c
1 changed files with 2 additions and 3 deletions
5
dist/index.js
vendored
5
dist/index.js
vendored
|
@ -5663,11 +5663,10 @@ class ArtifactHttpClient {
|
|||
try {
|
||||
const response = yield operation();
|
||||
const statusCode = response.message.statusCode;
|
||||
const raw = yield response.readBody();
|
||||
const body = JSON.parse(raw);
|
||||
const body = yield response.readBody();
|
||||
(0, core_1.debug)(`[Response] - ${response.message.statusCode}`);
|
||||
(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)) {
|
||||
return { response, body };
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue