fixed small port fail in HTTPConnector.class.php master
authorpk910 <philipp@zoelle1.de>
Tue, 2 Jul 2013 02:24:56 +0000 (04:24 +0200)
committerpk910 <philipp@zoelle1.de>
Tue, 2 Jul 2013 02:24:56 +0000 (04:24 +0200)
PHP/HTTPConnector.class.php

index 596da829417ad3112e5040befa8e0f41ee1869af..fa37ecfb2f5ea249527ef19bc88fd580187de034 100644 (file)
@@ -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;