Skip to content

Commit 22e5423

Browse files
authored
Fix response code retrying logic for HTTP responses with "Content-Type" other than "application/json". (#2329)
1 parent 838b17e commit 22e5423

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

google-cloud-core-http/src/main/java/com/google/cloud/http/BaseHttpServiceException.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ private static ExceptionData makeExceptionData(IOException exception, boolean id
6262
}
6363
} else {
6464
code = ((GoogleJsonResponseException) exception).getStatusCode();
65+
retryable = BaseServiceException.isRetryable(code, null, idempotent, retryableErrors);
6566
}
6667
} else {
6768
// In cases where an exception is an instance of HttpResponseException but not

0 commit comments

Comments
 (0)