Skip to content

Commit 37a7f81

Browse files
[HttpFoundation] Revert risk change
1 parent 4b8695c commit 37a7f81

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/Symfony/Component/HttpFoundation/Request.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -381,11 +381,9 @@ public static function create(string $uri, string $method = 'GET', array $parame
381381
if ('https' === $components['scheme']) {
382382
$server['HTTPS'] = 'on';
383383
$server['SERVER_PORT'] = 443;
384-
} elseif ('http' === $components['scheme']) {
384+
} else {
385385
unset($server['HTTPS']);
386386
$server['SERVER_PORT'] = 80;
387-
} else {
388-
throw new BadRequestException('Invalid URI: http(s) scheme expected.');
389387
}
390388
}
391389

0 commit comments

Comments
 (0)