"source": {
"type": "git",
"url": "https://github.com/WoltLab/guzzle-psr7",
- "reference": "3dffed9d5f5a762bcc843155a2f85c36614a299e"
+ "reference": "ea8fce9b54724a3527a5cc630574d0ddaafd5acd"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/WoltLab/guzzle-psr7/zipball/3dffed9d5f5a762bcc843155a2f85c36614a299e",
- "reference": "3dffed9d5f5a762bcc843155a2f85c36614a299e",
+ "url": "https://api.github.com/repos/WoltLab/guzzle-psr7/zipball/ea8fce9b54724a3527a5cc630574d0ddaafd5acd",
+ "reference": "ea8fce9b54724a3527a5cc630574d0ddaafd5acd",
"shasum": ""
},
"require": {
"uri",
"url"
],
- "time": "2022-06-20T21:43:03+00:00"
+ "time": "2023-04-17T15:33:27+00:00"
},
{
"name": "pear/net_idna2",
"source": {
"type": "git",
"url": "https://github.com/WoltLab/guzzle-psr7",
- "reference": "3dffed9d5f5a762bcc843155a2f85c36614a299e"
+ "reference": "ea8fce9b54724a3527a5cc630574d0ddaafd5acd"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/WoltLab/guzzle-psr7/zipball/3dffed9d5f5a762bcc843155a2f85c36614a299e",
- "reference": "3dffed9d5f5a762bcc843155a2f85c36614a299e",
+ "url": "https://api.github.com/repos/WoltLab/guzzle-psr7/zipball/ea8fce9b54724a3527a5cc630574d0ddaafd5acd",
+ "reference": "ea8fce9b54724a3527a5cc630574d0ddaafd5acd",
"shasum": ""
},
"require": {
"suggest": {
"zendframework/zend-httphandlerrunner": "Emit PSR-7 responses"
},
- "time": "2022-06-20T21:43:03+00:00",
+ "time": "2023-04-17T15:33:27+00:00",
"type": "library",
"extra": {
"branch-alias": {
'guzzlehttp/psr7' => array(
'pretty_version' => 'dev-woltlab-1.6.1',
'version' => 'dev-woltlab-1.6.1',
- 'reference' => '3dffed9d5f5a762bcc843155a2f85c36614a299e',
+ 'reference' => 'ea8fce9b54724a3527a5cc630574d0ddaafd5acd',
'type' => 'library',
'install_path' => __DIR__ . '/../guzzlehttp/psr7',
'aliases' => array(
throw new \InvalidArgumentException('Header name can not be empty.');
}
- if (! preg_match('/^[a-zA-Z0-9\'`#$%&*+.^_|~!-]+$/', $header)) {
+ if (! preg_match('/^[a-zA-Z0-9\'`#$%&*+.^_|~!-]+$/D', $header)) {
throw new \InvalidArgumentException(
- sprintf(
- '"%s" is not valid header name',
- $header
- )
+ sprintf('"%s" is not valid header name.', $header)
);
}
}
// Clients must not send a request with line folding and a server sending folded headers is
// likely very rare. Line folding is a fairly obscure feature of HTTP/1.1 and thus not accepting
// folding is not likely to break any legitimate use case.
- if (! preg_match('/^[\x20\x09\x21-\x7E\x80-\xFF]*$/', $value)) {
- throw new \InvalidArgumentException(sprintf('"%s" is not valid header value', $value));
+ if (! preg_match('/^[\x20\x09\x21-\x7E\x80-\xFF]*$/D', $value)) {
+ throw new \InvalidArgumentException(
+ sprintf('"%s" is not valid header value.', $value)
+ );
}
}
}