Commit c2e2974f authored by webchick's avatar webchick
Browse files

#245990 follow-up by Pedro Lozano: Tell system_http_check() not to follow...

#245990 follow-up by Pedro Lozano: Tell system_http_check() not to follow redirects to avoid false error notifications.
parent f0b5afb4
...@@ -3140,7 +3140,7 @@ function system_time_zones($blank = NULL) { ...@@ -3140,7 +3140,7 @@ function system_time_zones($blank = NULL) {
*/ */
function system_check_http_request() { function system_check_http_request() {
// Try to get the content of the front page via drupal_http_request(). // Try to get the content of the front page via drupal_http_request().
$result = drupal_http_request(url('', array('absolute' => TRUE))); $result = drupal_http_request(url('', array('absolute' => TRUE, 'max_redirects' => 0)));
// We only care that we get a http response - this means that Drupal // We only care that we get a http response - this means that Drupal
// can make a http request. // can make a http request.
$works = isset($result->code) && ($result->code >= 100) && ($result->code < 600); $works = isset($result->code) && ($result->code >= 100) && ($result->code < 600);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment