AmoliTTa / android-query

Automatically exported from code.google.com/p/android-query
0 stars 0 forks source link

HTTP 204 Response results in Network Error (-101) #122

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Perform an HTTP Put which results in a 204 (No Content)
2. response body is empty (response.getEntity() will be null)
3. This line in AbstractAjaxCallback results in an error because entity is 
null: int size = Math.max(32, Math.min(1024 * 64, (int) 
entity.getContentLength()));

What is the expected output? What do you see instead?

What should happen is a check for if entity is null and then not try to read 
the data, because it won't exist (entity is null).

What version of the product are you using? On what operating system?

android-query-full.0.25.5-beta. Running on Android ICS 4.0.4

Original issue reported on code.google.com by lalitkap...@gmail.com on 27 Feb 2013 at 8:10

GoogleCodeExporter commented 8 years ago

Original comment by tinyeeliu@gmail.com on 6 Mar 2013 at 11:30