Skip to content

Commit b393dc4

Browse files
committed
Updated name
1 parent 1b1b744 commit b393dc4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/Github/HttpClient/Builder.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
use Http\Message\RequestFactory;
1414
use Http\Message\StreamFactory;
1515
use Psr\Cache\CacheItemPoolInterface;
16-
use Http\Client\Common\Plugin\Cache\Generator\VaryGenerator;
16+
use Http\Client\Common\Plugin\Cache\Generator\HeaderCacheKeyGenerator;
1717

1818
/**
1919
* A builder that builds the API client.
@@ -183,7 +183,7 @@ public function addHeaderValue($header, $headerValue)
183183
public function addCache(CacheItemPoolInterface $cachePool, array $config = [])
184184
{
185185
if (!isset($config['cache_key_generator'])) {
186-
$config['cache_key_generator'] = new VaryGenerator(['Authorization']);
186+
$config['cache_key_generator'] = new HeaderCacheKeyGenerator(['Authorization', 'Cookie', 'Accept']);
187187
}
188188
$this->cachePlugin = Plugin\CachePlugin::clientCache($cachePool, $this->streamFactory, $config);
189189
$this->httpClientModified = true;

0 commit comments

Comments
 (0)