Commit 01e76e37 authored by Dries's avatar Dries
Browse files

- Patch #6887 by Gerhard: fget -> fread for sake of compatibility.

parent 9796455a
...@@ -348,7 +348,7 @@ function drupal_http_request($url, $headers = array(), $method = 'GET', $data = ...@@ -348,7 +348,7 @@ function drupal_http_request($url, $headers = array(), $method = 'GET', $data =
fwrite($fp, $request); fwrite($fp, $request);
// Fetch response. // Fetch response.
while (!feof($fp) && $data = fgets($fp, 1024)) { while (!feof($fp) && $data = fread($fp, 1024)) {
$response[] = $data; $response[] = $data;
} }
fclose($fp); fclose($fp);
......
Supports Markdown
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