← All changes
|
vendor_prefixed/guzzlehttp/guzzle/src/Handler/CurlMultiHandler.php
+1
-0
28.2
→
trunk
View file →
| @@ -276,8 +276,9 @@ | ||
| 276 | 276 | } |
| 277 | 277 | } |
| 278 | 278 | public function __invoke(\YoastSEO_Vendor\Psr\Http\Message\RequestInterface $request, array $options) : \YoastSEO_Vendor\GuzzleHttp\Promise\PromiseInterface |
| 279 | 279 | { |
| 280 | + \YoastSEO_Vendor\GuzzleHttp\Handler\HostValidator::assertRequestHost($request); | |
| 280 | 281 | if ($this->connectionCapsApplied && \defined('CURLOPT_SHARE') && isset($options['curl']) && \is_array($options['curl']) && \array_key_exists((int) \constant('CURLOPT_SHARE'), $options['curl'])) { |
| 281 | 282 | // Key presence alone conflicts: Guzzle cannot verify that a |
| 282 | 283 | // caller-managed shared connection pool honors the caps. |
| 283 | 284 | throw new \InvalidArgumentException('The request-level CURLOPT_SHARE cURL option cannot be combined with CurlMultiHandler connection cap options because Guzzle cannot verify that an external shared connection pool honors cURL multi connection caps.'); |