projects
/
CodeSnippets.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
447ecdf
)
fixed small port fail in HTTPConnector.class.php
master
author
pk910
<philipp@zoelle1.de>
Tue, 2 Jul 2013 02:24:56 +0000
(
04:24
+0200)
committer
pk910
<philipp@zoelle1.de>
Tue, 2 Jul 2013 02:24:56 +0000
(
04:24
+0200)
PHP/HTTPConnector.class.php
patch
|
blob
|
history
diff --git
a/PHP/HTTPConnector.class.php
b/PHP/HTTPConnector.class.php
index 596da829417ad3112e5040befa8e0f41ee1869af..fa37ecfb2f5ea249527ef19bc88fd580187de034 100644
(file)
--- 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;