From 43df1334a809eba7f329449486b02ca89229167e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Per=20Osb=C3=A4ck?= Date: Mon, 29 Nov 2010 15:59:12 +0100 Subject: [PATCH] Fix HTTP redirect missing statuscode 303 and 307 Change-Id: I1c5f3a9f348a05d0558b31f912e10a59382eb24c --- media/libstagefright/HTTPDataSource.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/media/libstagefright/HTTPDataSource.cpp b/media/libstagefright/HTTPDataSource.cpp index 521c3c864e2be..31ce02ff93fc9 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; }