Skip to content

Commit 39dc9b4

Browse files
committed
Merge pull request #163 from cmfcmf/patch-1
Fixed error in cached HTTPClient - do not overwrite headers.
2 parents d4c8fae + 4f5debb commit 39dc9b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Github/HttpClient/CachedHttpClient.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public function request($path, $body = null, $httpMethod = 'GET', array $headers
7272
*/
7373
protected function createRequest($httpMethod, $path, $body = null, array $headers = array(), array $options = array())
7474
{
75-
$request = parent::createRequest($httpMethod, $path, $body, $headers = array(), $options);
75+
$request = parent::createRequest($httpMethod, $path, $body, $headers, $options);
7676

7777
if ($modifiedAt = $this->getCache()->getModifiedSince($path)) {
7878
$modifiedAt = new \DateTime('@'.$modifiedAt);

0 commit comments

Comments
 (0)