Skip to content

Commit 6cbca10

Browse files
Jean-Baptiste QueruAndroid Code Review
authored andcommitted
Merge "Fix HTTP redirect missing statuscode 303 and 307"
2 parents f0f6c54 + 43df133 commit 6cbca10

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)