From 01e76e374fe16845b600c530b65778f33f4382b4 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Wed, 21 Apr 2004 19:43:23 +0000 Subject: [PATCH] - Patch #6887 by Gerhard: fget -> fread for sake of compatibility. --- includes/common.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/common.inc b/includes/common.inc index 7af2e13b04c..32a70a76329 100644 --- a/includes/common.inc +++ b/includes/common.inc @@ -348,7 +348,7 @@ function drupal_http_request($url, $headers = array(), $method = 'GET', $data = fwrite($fp, $request); // Fetch response. - while (!feof($fp) && $data = fgets($fp, 1024)) { + while (!feof($fp) && $data = fread($fp, 1024)) { $response[] = $data; } fclose($fp);