Skip to content

Commit 43df133

Browse files
committed
Fix HTTP redirect missing statuscode 303 and 307
Change-Id: I1c5f3a9f348a05d0558b31f912e10a59382eb24c
1 parent f0f6c54 commit 43df133

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

media/libstagefright/HTTPDataSource.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ status_t HTTPDataSource::connectWithRedirectsAndRange(off_t rangeStart) {
8888
return OK;
8989
}
9090

91-
if (httpStatus != 301 && httpStatus != 302) {
91+
if (httpStatus != 301 && httpStatus != 302 && httpStatus != 303 && httpStatus != 307) {
9292
LOGE("HTTP request failed w/ http status %d", httpStatus);
9393
return ERROR_IO;
9494
}

0 commit comments

Comments
 (0)