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 /includes | |
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
Diffstat (limited to 'includes')
-rw-r--r-- | includes/common.inc | 6 |
1 files changed, 6 insertions, 0 deletions
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 |