summaryrefslogtreecommitdiff
path: root/it_url.class
diff options
context:
space:
mode:
Diffstat (limited to 'it_url.class')
-rw-r--r--it_url.class2
1 files changed, 1 insertions, 1 deletions
diff --git a/it_url.class b/it_url.class
index ea93930..15f2f2f 100644
--- a/it_url.class
+++ b/it_url.class
@@ -244,7 +244,7 @@ function request($p=array())
EDC('curlinfo', curl_getinfo($curl));
- if ($got) {
+ if ($got !== false) {
$headersize = curl_getinfo($curl, CURLINFO_HEADER_SIZE);
$url->header = array_slice(explode("\r\n\r\n", trim(substr($got, 0, $headersize))), -1)[0] . "\r\n\r\n";
$url->data = substr($got, $headersize);