diff --git a/CHANGELOG.txt b/CHANGELOG.txt index b7e792c08c040ed74822a78bdd8d48a6b4d40908..c5b40adb85ca2ee3de641b6612f05228120543e8 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -3,6 +3,7 @@ Feeds 6.x 1.X XXXX ------------------ +- #842040 dixon_: Accept all responses from the 2xx status code series. - #836982 Steven Merrill: Fix Feeds.module tests do not work when run from the command line. diff --git a/plugins/FeedsHTTPFetcher.inc b/plugins/FeedsHTTPFetcher.inc index 2cccc9b5d63e42f2298dad1ad099ff24d2ccfe0a..396887906b8e5c02d13d586fbd39f5c8fff35257 100644 --- a/plugins/FeedsHTTPFetcher.inc +++ b/plugins/FeedsHTTPFetcher.inc @@ -30,7 +30,7 @@ class FeedsHTTPBatch extends FeedsImportBatch { public function getRaw() { feeds_include_library('http_request.inc', 'http_request'); $result = http_request_get($this->url); - if ($result->code != 200) { + if (!in_array($result->code, array(200, 201, 202, 203, 204, 205, 206))) { throw new Exception(t('Download of @url failed with code !code.', array('@url' => $this->url, '!code' => $result->code))); } return $result->data;