Commit 102037bb authored by tufengqi's avatar tufengqi

fix

parent 468150a0
...@@ -130,7 +130,7 @@ class SwooleHttpClient ...@@ -130,7 +130,7 @@ class SwooleHttpClient
if (true === $scheme && !$parts['port']) { if (true === $scheme && !$parts['port']) {
$parts['port'] = 443; $parts['port'] = 443;
} }
$parts['port'] = intval($parts['port'] ?? 80); $parts['port'] = $parts['port'] ? intval($parts['port']) : 80;
$this->curl_handle = new Client($parts['host'], $parts['port'], $scheme); $this->curl_handle = new Client($parts['host'], $parts['port'], $scheme);
$full_url = $this->full_url; $full_url = $this->full_url;
$headers = []; $headers = [];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment