Skip to content

Commit

Permalink
fixes bug #1519
Browse files Browse the repository at this point in the history
  • Loading branch information
David Senk committed Jan 30, 2024
1 parent 6455fd8 commit 9a00279
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,11 @@ public HttpRequest filter(HttpRequest request) throws HttpException {
endpoint.getPath() +
(endpoint.getQuery() == null ? "" : "?" + endpoint.getQuery()));

String updatedRequestBody = request.getPayload().getRawContent().toString().replaceAll("\"accountId\":.?\".*\"", "\"accountId\":\"" + auth.accountId() + "\"");
request = request.toBuilder()
.endpoint(endpoint)
.replaceHeader(HttpHeaders.AUTHORIZATION, auth.authorizationToken())
.payload(updatedRequestBody)
.build();
return request;
}
Expand Down

0 comments on commit 9a00279

Please sign in to comment.