-
Notifications
You must be signed in to change notification settings - Fork 9.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Always return response content length is -1 #3309
Comments
A content length of -1 means unknown. You can still call |
@JakeWharton you are right. I debugged responseBody.string() is success. So it means there is no problem with my code? |
Correct. It just means that the length isn't known and must be streamed. |
@JakeWharton thanks a lot. you saved my time |
@JakeWharton |
Also regarding |
I tried with a lot of different urls but always response content length is -1
Response return 200 code but contentLength is equal -1 and isSuccessful is true. I dont know what should I do? I tried 20 different urls but result is same.
NOTES:
The text was updated successfully, but these errors were encountered: