summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteve Kondik <shade@chemlab.org>2010-11-29 22:37:15 +0000
committerGerrit Code Review <gerrit@review.cyanogenmod.com>2010-11-29 22:37:15 +0000
commitbe1da028a13ee95e094e9cbae8cc09ea3ef239fe (patch)
treea3e0cbc121fa5d1088888dec5bbf2f6a4526e0d2
parent5d1bbc0204f95c809e5580a589d728ef42271aba (diff)
parent3a992e4addd9198baa3c35207d646904a160fc25 (diff)
downloadframeworks_base-be1da028a13ee95e094e9cbae8cc09ea3ef239fe.zip
frameworks_base-be1da028a13ee95e094e9cbae8cc09ea3ef239fe.tar.gz
frameworks_base-be1da028a13ee95e094e9cbae8cc09ea3ef239fe.tar.bz2
Merge "Fix HTTP redirect for 303 and 307" into froyo
-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;
}