diff options
-rw-r--r-- | includes/common.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/common.inc b/includes/common.inc index 7af2e13b0..32a70a763 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); |