Merge "Fix HTTP redirect missing statuscode 303 and 307"

This commit is contained in:
Jean-Baptiste Queru
2010-12-01 08:25:12 -08:00
committed by Android Code Review

View File

@@ -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;
}