We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0641d4a commit dc2f02eCopy full SHA for dc2f02e
src/Http/Url.php
@@ -654,7 +654,7 @@ function ($matches) {
654
throw new \InvalidArgumentException('Malformed URL: ' . $url);
655
}
656
657
- if (empty($parts['scheme']) || !in_array($parts['scheme'], ['http', 'https'])) {
+ if (!empty($parts['scheme']) && !in_array($parts['scheme'], ['http', 'https'])) {
658
throw new \InvalidArgumentException(sprintf('Invalid URL scheme: "%s"', $parts['scheme']));
659
660
0 commit comments