Fix HTTP redirect missing statuscode 303 and 307

Change-Id: I1c5f3a9f348a05d0558b31f912e10a59382eb24c
This commit is contained in:
Per Osbäck
2010-11-29 15:59:12 +01:00
parent f0f6c54b13
commit 43df1334a8

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