diff options
| author | Andrew Dolgov <fox@fakecake.org> | 2024-10-10 16:01:54 +0000 |
|---|---|---|
| committer | Andrew Dolgov <fox@fakecake.org> | 2024-10-10 16:01:54 +0000 |
| commit | 468f464b486e2ed0527cfd7e80113d37cdd4d07c (patch) | |
| tree | 60b3243c3796d6a21a349ee7ae8e5c76d5d2717a /vendor/guzzlehttp/psr7/src/Message.php | |
| parent | 7fafad2ac2466b9a17b802d9b29d10056b439e29 (diff) | |
| parent | 124c4e254250ebac336392711b32dfd6fa3caef3 (diff) | |
Merge branch 'feature/guzzle-7.9.2' into 'master'
Update Guzzle to 7.9.2
See merge request tt-rss/tt-rss!70
Diffstat (limited to 'vendor/guzzlehttp/psr7/src/Message.php')
| -rw-r--r-- | vendor/guzzlehttp/psr7/src/Message.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/vendor/guzzlehttp/psr7/src/Message.php b/vendor/guzzlehttp/psr7/src/Message.php index 6e6c3e51b..5561a5130 100644 --- a/vendor/guzzlehttp/psr7/src/Message.php +++ b/vendor/guzzlehttp/psr7/src/Message.php @@ -146,7 +146,7 @@ final class Message // If these aren't the same, then one line didn't match and there's an invalid header. if ($count !== substr_count($rawHeaders, "\n")) { - // Folding is deprecated, see https://tools.ietf.org/html/rfc7230#section-3.2.4 + // Folding is deprecated, see https://datatracker.ietf.org/doc/html/rfc7230#section-3.2.4 if (preg_match(Rfc7230::HEADER_FOLD_REGEX, $rawHeaders)) { throw new \InvalidArgumentException('Invalid header syntax: Obsolete line folding'); } @@ -227,9 +227,9 @@ final class Message public static function parseResponse(string $message): ResponseInterface { $data = self::parseMessage($message); - // According to https://tools.ietf.org/html/rfc7230#section-3.1.2 the space - // between status-code and reason-phrase is required. But browsers accept - // responses without space and reason as well. + // According to https://datatracker.ietf.org/doc/html/rfc7230#section-3.1.2 + // the space between status-code and reason-phrase is required. But + // browsers accept responses without space and reason as well. if (!preg_match('/^HTTP\/.* [0-9]{3}( .*|$)/', $data['start-line'])) { throw new \InvalidArgumentException('Invalid response string: '.$data['start-line']); } |