File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
clickhouse-http-client/src/main/java/com/clickhouse/client/http Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ public abstract class ClickHouseHttpConnection implements AutoCloseable {
5353 private static final byte [] SUFFIX_FORMAT = "_format\" \r \n \r \n " .getBytes (StandardCharsets .US_ASCII );
5454 private static final byte [] SUFFIX_STRUCTURE = "_structure\" \r \n \r \n " .getBytes (StandardCharsets .US_ASCII );
5555 private static final byte [] SUFFIX_FILENAME = "\" ; filename=\" " .getBytes (StandardCharsets .US_ASCII );
56- private static final List <String > FRAMEWORKS = List .of ("apache.spark" );
56+ private static final List <String > FRAMEWORKS_TO_INFER = List .of ("apache.spark" );
5757
5858 private static StringBuilder appendQueryParameter (StringBuilder builder , String key , String value ) {
5959 return builder .append (urlEncode (key , StandardCharsets .UTF_8 )).append ('=' )
@@ -414,7 +414,7 @@ protected String getDefaultUserAgent() {
414414 protected String getAdditionalFrameworkUserAgent () {
415415 Set <String > inferredFrameworks = new LinkedHashSet <>();
416416 for (StackTraceElement ste : Thread .currentThread ().getStackTrace ()) {
417- for (String framework : FRAMEWORKS ) {
417+ for (String framework : FRAMEWORKS_TO_INFER ) {
418418 if (ste .toString ().contains (framework )) {
419419 inferredFrameworks .add (String .format ("(%s)" , framework ));
420420 }
You can’t perform that action at this time.
0 commit comments