Skip to content

Commit d2737ec

Browse files
Merge branch '5.4' into 6.4
* 5.4: [HttpFoundation] Revert risk change [HttpClient] Fix catching some invalid Location headers
2 parents 49be6b8 + 897e8a2 commit d2737ec

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Request.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -374,11 +374,9 @@ public static function create(string $uri, string $method = 'GET', array $parame
374374
if ('https' === $components['scheme']) {
375375
$server['HTTPS'] = 'on';
376376
$server['SERVER_PORT'] = 443;
377-
} elseif ('http' === $components['scheme']) {
377+
} else {
378378
unset($server['HTTPS']);
379379
$server['SERVER_PORT'] = 80;
380-
} else {
381-
throw new BadRequestException('Invalid URI: http(s) scheme expected.');
382380
}
383381
}
384382

0 commit comments

Comments
 (0)