Skip to content

Commit

Permalink
A small improvement.
Browse files Browse the repository at this point in the history
  • Loading branch information
SebastianStehle committed Aug 11, 2023
1 parent 7f49ecc commit e2c9b9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/squidex/api/AuthInterceptor.java
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public Response intercept(@NotNull Chain chain) throws IOException {
}

Request requestWithHeader = originalRequest.newBuilder()
.header("Authorization", "Bearer " + token.getAccessToken())
.header("Authorization", "Bearer %s".formatted(token.getAccessToken()))
.build();

Response response = chain.proceed(requestWithHeader);
Expand Down

0 comments on commit e2c9b9b

Please sign in to comment.