Skip to content
Snippets Groups Projects
Commit 4167de31 authored by Michael Grosse's avatar Michael Grosse
Browse files

use SSL if scheme is https

This is to ensure that we use SSL/TLS if a custom port is defined an no
proxy is used.

Fixes #1526
parent abaeff3a
No related branches found
No related tags found
No related merge requests found
......@@ -278,7 +278,7 @@ class HTTPClient {
}
// add SSL stream prefix if needed - needs SSL support in PHP
if($port == 443 || $this->proxy_ssl) {
if($port == 443 || $this->proxy_ssl || $uri['scheme'] == 'https') {
if(!in_array('ssl', stream_get_transports())) {
$this->status = -200;
$this->error = 'This PHP version does not support SSL - cannot connect to server';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment