dev add another client for google and yandex
Test Workflow / test (push) Waiting to run

This commit is contained in:
vladp
2026-02-22 01:21:09 +07:00
parent 247e97cd7a
commit 47f3cda7b0
@@ -57,6 +57,7 @@ public class SearchImageService {
.followSslRedirects(true) .followSslRedirects(true)
.retryOnConnectionFailure(true) .retryOnConnectionFailure(true)
.connectionPool(new ConnectionPool(0, 1, TimeUnit.NANOSECONDS)) .connectionPool(new ConnectionPool(0, 1, TimeUnit.NANOSECONDS))
.build(); .build();
this.googleHttpClient = new OkHttpClient.Builder() this.googleHttpClient = new OkHttpClient.Builder()
@@ -139,6 +140,7 @@ public class SearchImageService {
.addQueryParameter("api_key", searchApiKey) .addQueryParameter("api_key", searchApiKey)
.addQueryParameter("url", imageUrl) .addQueryParameter("url", imageUrl)
.addQueryParameter("search_type", searchType) .addQueryParameter("search_type", searchType)
.addQueryParameter("t_", String.valueOf(System.currentTimeMillis()))
.build(); .build();
Request request = new Request.Builder() Request request = new Request.Builder()