Skip to content

Commit 35c32b3

Browse files
committed
Update lib/Github/HttpClient/HttpClient.php
Always set `User-Agent` header.
1 parent f3db6b5 commit 35c32b3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/Github/HttpClient/HttpClient.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,8 @@ public function setHeaders(array $headers)
8787
public function clearHeaders()
8888
{
8989
$this->headers = array(
90-
sprintf('Accept: application/vnd.github.%s+json', $this->options['api_version'])
90+
sprintf('Accept: application/vnd.github.%s+json', $this->options['api_version']),
91+
sprintf('User-Agent: %s', $this->options['user_agent']),
9192
);
9293
}
9394

0 commit comments

Comments
 (0)