Skip to content

Commit

Permalink
Merge pull request #6 from panovitch/custom-header-override-defaults
Browse files Browse the repository at this point in the history
Custom headers now override the default ones (bunq#141)
  • Loading branch information
meslubi2021 authored Jan 4, 2025
2 parents 33b5906 + ff58edc commit 1659931
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/bunq/sdk/http/ApiClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ private void setDefaultHeaders(BunqRequestBuilder httpEntity) {
*/
private void setCustomHeaders(Request.Builder requestBuilder, Map<String, String> customHeaders) {
for (Map.Entry<String, String> entry : customHeaders.entrySet()) {
requestBuilder.addHeader(entry.getKey(), entry.getValue());
requestBuilder.header(entry.getKey(), entry.getValue());
}
}

Expand Down

0 comments on commit 1659931

Please sign in to comment.