Skip to content

Commit

Permalink
refactor(http): Don't use shallow copy for JSON results (#21401)
Browse files Browse the repository at this point in the history
  • Loading branch information
zharinov committed Apr 9, 2023
1 parent 6a1d8bf commit dfb1ef4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/util/http/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -268,10 +268,11 @@ export class Http<Opts extends HttpOptions = HttpOptions> {
{ err: parsed.error },
`Response does not match schema: please report this to https://github.com/renovatebot/renovate/pull/21338`
);
return { ...res, body: res.body };
return res;
}

return { ...res, body: parsed.data };
res.body = parsed.data;
return res;
}

private resolveArgs<ResT = unknown>(
Expand Down

0 comments on commit dfb1ef4

Please sign in to comment.