Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
youngsofun committed Oct 21, 2024
1 parent d19889c commit b73bc6f
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ private JsonResponse(int statusCode, String statusMessage, Headers headers, @Nul

public static <T> JsonResponse<T> execute(JsonCodec<T> codec, OkHttpClient client, Request request, OptionalLong materializedJsonSizeLimit) throws RuntimeException {
try (Response response = client.newCall(request).execute()) {
System.out.println(response.code());
System.out.println(response.body());
// TODO: fix in OkHttp: https://github.com/square/okhttp/issues/3111
if ((response.code() == 307) || (response.code() == 308)) {
String location = response.header(LOCATION);
Expand Down

0 comments on commit b73bc6f

Please sign in to comment.