Skip to content

Commit 7aa962b

Browse files
authored
Fix parsing of raw ipv6 address in host header (#378)
1 parent a4cc330 commit 7aa962b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Driver/Internal/AbstractHttpDriver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
/** @internal */
1818
abstract class AbstractHttpDriver implements HttpDriver
1919
{
20-
protected const HOST_HEADER_REGEX = /** @lang RegExp */ '#^([A-Z\d._\-]+|\[[\d:]+])(?::([1-9]\d*))?$#i';
20+
protected const HOST_HEADER_REGEX = /** @lang RegExp */ '#^([A-Z\d._\-]+|\[[\dA-F:]+])(?::([1-9]\d*))?$#i';
2121

2222
private static ?TimeoutQueue $timeoutQueue = null;
2323

0 commit comments

Comments
 (0)