- Patch #6887 by Gerhard: fget -> fread for sake of compatibility.
parent
9796455aaf
commit
01e76e374f
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue