Skip to content

Commit e86246a

Browse files
committed
Match order of unparsed url parts
1 parent 12aac6d commit e86246a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Curl/Url.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,11 +194,11 @@ function ($matches) {
194194
*/
195195
private function unparseUrl($parsed_url) {
196196
$scheme = isset($parsed_url['scheme']) ? $parsed_url['scheme'] . '://' : '';
197-
$host = isset($parsed_url['host']) ? $parsed_url['host'] : '';
198-
$port = isset($parsed_url['port']) ? ':' . $parsed_url['port'] : '';
199197
$user = isset($parsed_url['user']) ? $parsed_url['user'] : '';
200198
$pass = isset($parsed_url['pass']) ? ':' . $parsed_url['pass'] : '';
201199
$pass = ($user || $pass) ? $pass . '@' : '';
200+
$host = isset($parsed_url['host']) ? $parsed_url['host'] : '';
201+
$port = isset($parsed_url['port']) ? ':' . $parsed_url['port'] : '';
202202
$path = isset($parsed_url['path']) ? $parsed_url['path'] : '';
203203
$query = isset($parsed_url['query']) ? '?' . $parsed_url['query'] : '';
204204
$fragment = isset($parsed_url['fragment']) ? '#' . $parsed_url['fragment'] : '';

0 commit comments

Comments
 (0)