#617126: fix the way drupal_http_request() uses fread().

From: Damien Tournoud <damien@tournoud.net>


---
 common.inc |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git includes/common.inc includes/common.inc
index 817be28..9441023 100644
--- includes/common.inc
+++ includes/common.inc
@@ -538,8 +538,8 @@ function drupal_http_request($url, $headers = array(), $method = 'GET', $data =
 
   // Fetch response.
   $response = '';
-  while (!feof($fp) && $chunk = fread($fp, 1024)) {
-    $response .= $chunk;
+  while (!feof($fp)) {
+    $response .= fread($fp, 1024);
   }
   fclose($fp);
 
