summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPer Osbäck <per@osbeck.com>2010-11-29 14:52:25 +0100
committerPer Osbäck <per@osbeck.com>2010-11-29 14:52:25 +0100
commit3a992e4addd9198baa3c35207d646904a160fc25 (patch)
tree25881f0952c313933332e92cfd5920b5aca40838
parenta814ad7ab5d915224f54e5cd2c89b755414547a8 (diff)
downloadframeworks_base-3a992e4addd9198baa3c35207d646904a160fc25.zip
frameworks_base-3a992e4addd9198baa3c35207d646904a160fc25.tar.gz
frameworks_base-3a992e4addd9198baa3c35207d646904a160fc25.tar.bz2
Fix HTTP redirect for 303 and 307
Change-Id: I97c6dcd0cad3bca0741b1772edec82596633b77b
-rw-r--r--media/libstagefright/HTTPDataSource.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/media/libstagefright/HTTPDataSource.cpp b/media/libstagefright/HTTPDataSource.cpp
index 521c3c8..31ce02f 100644
--- a/media/libstagefright/HTTPDataSource.cpp
+++ b/media/libstagefright/HTTPDataSource.cpp
@@ -88,7 +88,7 @@ status_t HTTPDataSource::connectWithRedirectsAndRange(off_t rangeStart) {
return OK;
}
- if (httpStatus != 301 && httpStatus != 302) {
+ if (httpStatus != 301 && httpStatus != 302 && httpStatus != 303 && httpStatus != 307) {
LOGE("HTTP request failed w/ http status %d", httpStatus);
return ERROR_IO;
}