diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2008-09-06 15:06:10 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2008-09-06 15:06:10 +0000 |
commit | 73356fde8b3ebd076e2c588bb8935f914fd8ebb8 (patch) | |
tree | f417468dde71b29eecc2763a5c60eceab13685ae /includes | |
parent | e5b0e5f76c0695a01d13c55147a8287df8750594 (diff) | |
download | brdo-73356fde8b3ebd076e2c588bb8935f914fd8ebb8.tar.gz brdo-73356fde8b3ebd076e2c588bb8935f914fd8ebb8.tar.bz2 |
#296310 by DamZ: Fixes to drupal_http_request() and accompanying tests.
Diffstat (limited to 'includes')
-rw-r--r-- | includes/common.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/common.inc b/includes/common.inc index be43d6638..13628d2f1 100644 --- a/includes/common.inc +++ b/includes/common.inc @@ -563,8 +563,8 @@ function drupal_http_request($url, $headers = array(), $method = 'GET', $data = $location = $result->headers['Location']; if ($retry) { - $result = drupal_http_request($result->headers['Location'], $headers, $method, $data, --$retry); - $result->redirect_code = $result->code; + $result = drupal_http_request($location, $headers, $method, $data, --$retry); + $result->redirect_code = $code; } $result->redirect_url = $location; |