diff options
author | Per Osbäck <per@osbeck.com> | 2010-11-29 14:52:25 +0100 |
---|---|---|
committer | Per Osbäck <per@osbeck.com> | 2010-11-29 14:52:25 +0100 |
commit | 3a992e4addd9198baa3c35207d646904a160fc25 (patch) | |
tree | 25881f0952c313933332e92cfd5920b5aca40838 | |
parent | a814ad7ab5d915224f54e5cd2c89b755414547a8 (diff) | |
download | frameworks_base-3a992e4addd9198baa3c35207d646904a160fc25.zip frameworks_base-3a992e4addd9198baa3c35207d646904a160fc25.tar.gz frameworks_base-3a992e4addd9198baa3c35207d646904a160fc25.tar.bz2 |
Fix HTTP redirect for 303 and 307
Change-Id: I97c6dcd0cad3bca0741b1772edec82596633b77b
-rw-r--r-- | media/libstagefright/HTTPDataSource.cpp | 2 |
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; } |