Skip to content

Commit cf7164e

Browse files
Fuudgmessner
authored andcommitted
Allow to setup client properties (#102)
1 parent 09fd776 commit cf7164e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/main/java/org/gitlab4j/api/GitLabApiClient.java

100644100755
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,9 @@ public GitLabApiClient(ApiVersion apiVersion, String hostUrl, TokenType tokenTyp
207207

208208
clientConfig = new ClientConfig();
209209
if (clientConfigProperties != null) {
210-
clientConfig.getProperties().putAll(clientConfigProperties);
210+
for (Map.Entry<String, Object> propertyEntry : clientConfigProperties.entrySet()) {
211+
clientConfig.property(propertyEntry.getKey(), propertyEntry.getValue());
212+
}
211213
}
212214

213215
clientConfig.register(JacksonJson.class);

0 commit comments

Comments
 (0)