Skip to content
Snippets Groups Projects
Commit 01e76e37 authored by Dries Buytaert's avatar Dries Buytaert
Browse files

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

parent 9796455a
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
...@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment