From 3fa35fab2c80cc6b59762319ea0951beb2a56836 Mon Sep 17 00:00:00 2001 From: vam Date: Thu, 10 Aug 2017 16:27:43 -0700 Subject: [PATCH] Fix response code retrying logic for HTTP responses with "Content-Type" other than "application/json". --- .../java/com/google/cloud/http/BaseHttpServiceException.java | 1 + 1 file changed, 1 insertion(+) diff --git a/google-cloud-core-http/src/main/java/com/google/cloud/http/BaseHttpServiceException.java b/google-cloud-core-http/src/main/java/com/google/cloud/http/BaseHttpServiceException.java index ca979c6a7ec9..bc79026185ba 100644 --- a/google-cloud-core-http/src/main/java/com/google/cloud/http/BaseHttpServiceException.java +++ b/google-cloud-core-http/src/main/java/com/google/cloud/http/BaseHttpServiceException.java @@ -62,6 +62,7 @@ private static ExceptionData makeExceptionData(IOException exception, boolean id } } else { code = ((GoogleJsonResponseException) exception).getStatusCode(); + retryable = BaseServiceException.isRetryable(code, null, idempotent, retryableErrors); } } else { // In cases where an exception is an instance of HttpResponseException but not