From fb0264790c0eab515295fdce4aa7103a302381c3 Mon Sep 17 00:00:00 2001
From: Alex Barth <alex_b@53995.no-reply.drupal.org>
Date: Thu, 1 Jul 2010 14:19:18 +0000
Subject: [PATCH] #842040 dixon_: Accept all responses from the 2xx status code
 series.

---
 CHANGELOG.txt                | 1 +
 plugins/FeedsHTTPFetcher.inc | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/CHANGELOG.txt b/CHANGELOG.txt
index b7e792c0..c5b40adb 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 2cccc9b5..39688790 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;
-- 
GitLab