am 60ae65ed: am 87782f2b: Merge "Restrict the range request to the servers claiming that they accept ranges. This may be too restrict as the spec says the server MAY set this in the response header. But this is the last minute change made in https://android-git.corp.g

Merge commit '60ae65ed30564969b3e14642394c5e22c019125d' into kraken

* commit '60ae65ed30564969b3e14642394c5e22c019125d':
  Restrict the range request to the servers claiming
This commit is contained in:
Grace Kloba
2010-04-23 17:19:39 -07:00
committed by Android Git Automerger

View File

@@ -268,7 +268,10 @@ class Request {
if (hasBody)
entity = httpClientConnection.receiveResponseEntity(header);
boolean supportPartialContent = v.greaterEquals(HttpVersion.HTTP_1_1);
// restrict the range request to the servers claiming that they are
// accepting ranges in bytes
boolean supportPartialContent = "bytes".equalsIgnoreCase(header
.getAcceptRanges());
if (entity != null) {
InputStream is = entity.getContent();