diff options
author | David Rothstein <drothstein@gmail.com> | 2015-10-13 00:31:22 -0400 |
---|---|---|
committer | David Rothstein <drothstein@gmail.com> | 2015-10-13 00:31:22 -0400 |
commit | 63358dff31f8ecdd9eb00a61de1122123ff6f1d7 (patch) | |
tree | f38ca9e598909a461b4ce52c9911595fc4cd9fa6 | |
parent | 2fd22bd09f6be148c6b5f7ec888c15f910c940ed (diff) | |
download | brdo-63358dff31f8ecdd9eb00a61de1122123ff6f1d7.tar.gz brdo-63358dff31f8ecdd9eb00a61de1122123ff6f1d7.tar.bz2 |
Issue #2350033 by murrayw, kenorb: drupal_http_request thinks 201 through 206 status codes are an error
-rw-r--r-- | CHANGELOG.txt | 2 | ||||
-rw-r--r-- | includes/common.inc | 6 |
2 files changed, 8 insertions, 0 deletions
diff --git a/CHANGELOG.txt b/CHANGELOG.txt index 6101a1e3c..f23b9c993 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -1,6 +1,8 @@ Drupal 7.40, xxxx-xx-xx (development version) ----------------------- +- Prevented drupal_http_request() from returning an error when it receives a + 201 through 206 HTTP status code. - Added support for autoloading traits via the registry on sites running PHP 5.4 or higher. - Allowed the user-picture.tpl.php theme template to have HTML classes besides diff --git a/includes/common.inc b/includes/common.inc index bf187dbb9..ab763bad7 100644 --- a/includes/common.inc +++ b/includes/common.inc @@ -1057,6 +1057,12 @@ function drupal_http_request($url, array $options = array()) { switch ($code) { case 200: // OK + case 201: // Created + case 202: // Accepted + case 203: // Non-Authoritative Information + case 204: // No Content + case 205: // Reset Content + case 206: // Partial Content case 304: // Not modified break; case 301: // Moved permanently |