summaryrefslogtreecommitdiff
path: root/modules/system
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2010-06-13 09:42:00 +0000
committerDries Buytaert <dries@buytaert.net>2010-06-13 09:42:00 +0000
commit38401e3815a62d3cc0bf0195d634d9facacc0f01 (patch)
treec576dd363dbe5586c014ab79bf62f3d3aa79e8df /modules/system
parent00a0e7c902167017d7499d5eb0b04fa9b26bf5a5 (diff)
downloadbrdo-38401e3815a62d3cc0bf0195d634d9facacc0f01.tar.gz
brdo-38401e3815a62d3cc0bf0195d634d9facacc0f01.tar.bz2
- Patch #245990 by Pedro Lozano: HTTP request testing unreliable and may be undesirable.
Diffstat (limited to 'modules/system')
-rw-r--r--modules/system/system.module2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/system/system.module b/modules/system/system.module
index fb309b827..9ad4db1ee 100644
--- a/modules/system/system.module
+++ b/modules/system/system.module
@@ -3140,7 +3140,7 @@ function system_time_zones($blank = NULL) {
*/
function system_check_http_request() {
// Try to get the content of the front page via drupal_http_request().
- $result = drupal_http_request(url('', array('absolute' => TRUE, 'max_redirects' => 0)));
+ $result = drupal_http_request(url('', array('absolute' => TRUE)), array('max_redirects' => 0));
// We only care that we get a http response - this means that Drupal
// can make a http request.
$works = isset($result->code) && ($result->code >= 100) && ($result->code < 600);