summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathan Gass2017-08-16 19:23:22 +0200
committerNathan Gass2017-08-16 19:23:22 +0200
commit87dc1f54bd1cb6bf17354b8d8f33a393fddf0349 (patch)
treee821b85648d72994f7123684272b5acf76c3a541
parente0aec40c907801cf7f15d230a2702ac34247b16a (diff)
downloaditools-87dc1f54bd1cb6bf17354b8d8f33a393fddf0349.tar.gz
itools-87dc1f54bd1cb6bf17354b8d8f33a393fddf0349.tar.bz2
itools-87dc1f54bd1cb6bf17354b8d8f33a393fddf0349.zip
use normalized url instead of rawurl also for request_curl (so default protocol gets added)
-rw-r--r--it_url.class2
1 files changed, 1 insertions, 1 deletions
diff --git a/it_url.class b/it_url.class
index 608e6b7..8b2ef51 100644
--- a/it_url.class
+++ b/it_url.class
@@ -348,7 +348,7 @@ function request_curl($p=array())
$p['headers'] = (array)$p['headers'] + self::_default_headers($url, $p);
$opts = array(CURLOPT_FOLLOWLOCATION => false, CURLOPT_HEADER => 1) + self::curl_opts($p + array('user' => $this->user, 'pass' => $this->pass));
- $curl = curl_init($url->rawurl);
+ $curl = curl_init($url->url);
curl_setopt_array($curl, $opts);
$got = curl_exec($curl);