diff options
author | Nathan Gass | 2017-08-16 19:23:22 +0200 |
---|---|---|
committer | Nathan Gass | 2017-08-16 19:23:22 +0200 |
commit | 87dc1f54bd1cb6bf17354b8d8f33a393fddf0349 (patch) | |
tree | e821b85648d72994f7123684272b5acf76c3a541 /it_url.class | |
parent | e0aec40c907801cf7f15d230a2702ac34247b16a (diff) | |
download | itools-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)
Diffstat (limited to 'it_url.class')
-rw-r--r-- | it_url.class | 2 |
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); |