Commit 2ccba9a7 authored by Dries's avatar Dries

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

parent 5296f338
......@@ -333,7 +333,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);
......
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