Skip to content

Commit 8353689

Browse files
committed
fixed after merge
1 parent 1d522f2 commit 8353689

File tree

1 file changed

+2
-2
lines changed
  • client-v2/src/main/java/com/clickhouse/client/api

1 file changed

+2
-2
lines changed

client-v2/src/main/java/com/clickhouse/client/api/Client.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -980,7 +980,7 @@ public Client build() {
980980
if (!this.configuration.containsKey("access_token") &&
981981
(!this.configuration.containsKey("user") || !this.configuration.containsKey("password")) &&
982982
!MapUtils.getFlag(this.configuration, "ssl_authentication", false) &&
983-
!this.configuration.containsKey(ClientSettings.HTTP_HEADER_PREFIX + "Authorization") &&
983+
!this.configuration.containsKey(ClientConfigProperties.HTTP_HEADER_PREFIX + "Authorization") &&
984984
this.bearerTokenSupplier == null) {
985985
throw new IllegalArgumentException("Username and password (or access token or SSL authentication or pre-define Authorization header) are required");
986986
}
@@ -990,7 +990,7 @@ public Client build() {
990990
throw new IllegalArgumentException("Only one of password, access token or SSL authentication can be used per client.");
991991
}
992992

993-
if (this.configuration.containsKey(ClientSettings.HTTP_HEADER_PREFIX + "Authorization") &&
993+
if (this.configuration.containsKey(ClientConfigProperties.HTTP_HEADER_PREFIX + "Authorization") &&
994994
this.bearerTokenSupplier != null) {
995995
throw new IllegalArgumentException("Bearer token supplier cannot be used with a predefined Authorization header");
996996
}

0 commit comments

Comments
 (0)