diff --git a/library/Requests/Transport/fsockopen.php b/library/Requests/Transport/fsockopen.php index e9170f417..df36e9160 100644 --- a/library/Requests/Transport/fsockopen.php +++ b/library/Requests/Transport/fsockopen.php @@ -70,7 +70,9 @@ public function request($url, $headers = array(), $data = array(), $options = ar // HTTPS support if (isset($url_parts['scheme']) && strtolower($url_parts['scheme']) === 'https') { $remote_socket = 'ssl://' . $host; - $url_parts['port'] = 443; + if (!isset($url_parts['port'])) { + $url_parts['port'] = 443; + } $context_options = array( 'verify_peer' => true,