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

4.5.x
Dries Buytaert 2004-04-21 19:43:23 +00:00
parent 9796455aaf
commit 01e76e374f
1 changed files with 1 additions and 1 deletions

View File

@ -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);