commit | e8f5353b17aea6659dc3aa13223317b484d01483 | [log] [tgz] |
---|---|---|
author | Ray Colline <rayc@google.com> | Thu Sep 12 12:24:44 2013 -0700 |
committer | Ray Colline <rayc@google.com> | Thu Sep 12 12:24:44 2013 -0700 |
tree | 51fbd0df28fa4c5e1db1c3a727d89b629af596c6 | |
parent | 4c2fe1379f5d18bac2d27e89d4abb553e6f8d2e8 [diff] |
Support no-content (204) requests in BasicNetwork. When we get an empty response for say, a 204, we create a 0 byte response and pass it on to the NetworkResponse. Implementers of Request can then return appropriate Responses. The behavior before this change results in an NPE because we attempt to getContentLength() bytes from a null entity.. Change-Id: Ia5f92ffd99b8f3e88cc92dc50ba43c4721d83e79 Signed-off-by: Ray Colline <rayc@google.com>