summaryrefslogtreecommitdiffstats
path: root/etc/inc/xmlrpc_client.inc
diff options
context:
space:
mode:
authorManuel Silvoso <msilvoso@gmail.com>2014-05-08 14:27:10 +0200
committerManuel Silvoso <msilvoso@gmail.com>2014-05-08 14:27:10 +0200
commit81c8b51db237830e25557f84c6bad155e5741275 (patch)
tree16b19f7d397c04db5e5eeb6618eb244a5e240cf8 /etc/inc/xmlrpc_client.inc
parentd5fad541826c7900a1184d520c94efc1a8a68b14 (diff)
downloadpfsense-81c8b51db237830e25557f84c6bad155e5741275.zip
pfsense-81c8b51db237830e25557f84c6bad155e5741275.tar.gz
Convert protocol ssl:// to https:// when creating http headers
Diffstat (limited to 'etc/inc/xmlrpc_client.inc')
-rw-r--r--etc/inc/xmlrpc_client.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/inc/xmlrpc_client.inc b/etc/inc/xmlrpc_client.inc
index cc91f6d..fbbf977 100644
--- a/etc/inc/xmlrpc_client.inc
+++ b/etc/inc/xmlrpc_client.inc
@@ -1002,7 +1002,7 @@ class XML_RPC_Client extends XML_RPC_Base {
return false;
}
if ($this->proxy) {
- $this->headers = 'POST ' . $this->protocol . $this->server;
+ $this->headers = 'POST ' . ($this->protocol=='ssl://'?'https://':$this->protocol). $this->server;
if ($this->proxy_port) {
$this->headers .= ':' . $this->port;
}
OpenPOWER on IntegriCloud