Skip to content

Commit edb2898

Browse files
committed
Added Content-type
1 parent b393dc4 commit edb2898

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Github/HttpClient/Builder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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 HeaderCacheKeyGenerator(['Authorization', 'Cookie', 'Accept']);
186+
$config['cache_key_generator'] = new HeaderCacheKeyGenerator(['Authorization', 'Cookie', 'Accept', 'Content-type']);
187187
}
188188
$this->cachePlugin = Plugin\CachePlugin::clientCache($cachePool, $this->streamFactory, $config);
189189
$this->httpClientModified = true;

0 commit comments

Comments
 (0)