diff options
Diffstat (limited to 'modules/cloud.module')
-rw-r--r-- | modules/cloud.module | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/cloud.module b/modules/cloud.module index d429ce637..e66a4806f 100644 --- a/modules/cloud.module +++ b/modules/cloud.module @@ -55,7 +55,8 @@ function cloud_update($site) { if ($fp) { // fetch data: - fputs($fp, "GET $link[path]?$link[query] HTTP/1.0\nUser-Agent: ". variable_get(site_name, "drupal") ."\nHost: $link[host]\nAccept: */*\n\n"); + fputs($fp, "GET $link[path]?$link[query] HTTP/1.0\r\nUser-Agent: ". variable_get(site_name, "drupal") ."\r\nHost: $link[host]\r\nAccept: */*\r\n\r\n"); + while(!feof($fp)) $data .= fgets($fp, 128); if (strstr($data, "200 OK")) { |