diff options
| -rw-r--r-- | core/java/android/net/http/Request.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/core/java/android/net/http/Request.java b/core/java/android/net/http/Request.java index f1ebb47..8c0d503 100644 --- a/core/java/android/net/http/Request.java +++ b/core/java/android/net/http/Request.java @@ -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(); |
