From 2c8a9c1e6c27fea71f368d4e2518c222c13064ad Mon Sep 17 00:00:00 2001 From: pk910 Date: Tue, 2 Jul 2013 04:24:56 +0200 Subject: [PATCH] fixed small port fail in HTTPConnector.class.php --- PHP/HTTPConnector.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PHP/HTTPConnector.class.php b/PHP/HTTPConnector.class.php index 596da82..fa37ecf 100644 --- a/PHP/HTTPConnector.class.php +++ b/PHP/HTTPConnector.class.php @@ -42,7 +42,7 @@ class HTTPConnector { $request = array(); $request['host'] = $matches[3]; $request['ssl'] = (strtolower($matches[2]) == "https"); - $request['port'] = ($matches[6] ? $matches[6] : 80); + $request['port'] = ($matches[6] ? $matches[6] : ($request['ssl'] ? 443 : 80)); $request['path'] = ($matches[7] ? $matches[7] : "/"); $request['header'] = $this->default_header; $request['header_only'] = false; -- 2.20.1