From 1228242e5272a26df3cabf3f79372f991c6dcb0f Mon Sep 17 00:00:00 2001 From: David Flatz Date: Fri, 3 Aug 2018 17:35:26 +0200 Subject: check for false identity, content of $got could evaluate to false for some requests --- it_url.class | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.2.3