We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 519431e commit 52231acCopy full SHA for 52231ac
1 file changed
library/src/main/java/me/proxer/library/api/LoginTokenInterceptor.java
@@ -97,7 +97,7 @@ private void handleResponse(final Response response) throws IOException {
97
private String peekResponseBody(final Response response) throws IOException {
98
final ResponseBody safeBody = response.body();
99
100
- return safeBody != null && safeBody.contentLength() > 0 ? response.peekBody(MAX_PEEK_BYTE_COUNT).string() : "";
+ return safeBody != null && safeBody.contentLength() != 0 ? response.peekBody(MAX_PEEK_BYTE_COUNT).string() : "";
101
}
102
103
private boolean isLoginError(final ServerErrorType errorType) {
0 commit comments