We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3e66a16 commit 6c27bd4Copy full SHA for 6c27bd4
lib/Github/HttpClient/CachedHttpClient.php
@@ -68,7 +68,7 @@ public function request($path, $body = null, $httpMethod = 'GET', array $headers
68
return $cacheResponse;
69
}
70
71
- if ($httpMethod == 'GET') {
+ if (in_array($httpMethod, array('GET', 'HEAD'), true)) {
72
$this->getCache()->set($this->id, $response);
73
74
0 commit comments