@@ -134,6 +134,10 @@ class Unirest
|
||||
$query = '?'.http_build_query($query_parsed);
|
||||
}
|
||||
|
||||
// Handle port seperator
|
||||
if ($port && $port[0] != ":")
|
||||
$port = ":" . $port;
|
||||
|
||||
// Return the completed URL
|
||||
$result = $scheme . $host . $port . $path . $query;
|
||||
return $result;
|
||||
|
||||
Reference in New Issue
Block a user