Skip to content

Commit e88a66c

Browse files
committedNov 13, 2024
Merge branch '7.1' into 7.2
* 7.1: [HttpFoundation] Fix test [HttpFoundation] Revert risk change [Notifier] Fix GoIpTransport [HttpClient] Fix catching some invalid Location headers
2 parents 7df6f57 + 8276584 commit e88a66c

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed
 

‎Request.php

+1-3
Original file line numberDiff line numberDiff line change
@@ -323,11 +323,9 @@ public static function create(string $uri, string $method = 'GET', array $parame
323323
if ('https' === $components['scheme']) {
324324
$server['HTTPS'] = 'on';
325325
$server['SERVER_PORT'] = 443;
326-
} elseif ('http' === $components['scheme']) {
326+
} else {
327327
unset($server['HTTPS']);
328328
$server['SERVER_PORT'] = 80;
329-
} else {
330-
throw new BadRequestException('Invalid URI: http(s) scheme expected.');
331329
}
332330
}
333331

‎Tests/RequestTest.php

-1
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,6 @@ public function testCreateWithRequestUri()
312312
* [" foo"]
313313
* ["foo "]
314314
* ["//"]
315-
* ["foo:bar"]
316315
*/
317316
public function testCreateWithBadRequestUri(string $uri)
318317
{

0 commit comments

Comments
 (0)
Please sign in to comment.