File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
client-v2/src/main/java/com/clickhouse/client/api Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments