Skip to content

Commit 4fa238b

Browse files
committed
The Accept header should be set to json only, not raw and json
1 parent 744bff6 commit 4fa238b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Symfony/src/Codebender/LibraryBundle/Handler/DefaultHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,7 @@ private function curlGitRequest($url, $queryParams = '')
464464
$this->curlRequest(
465465
$requestUrl,
466466
null,
467-
['User-Agent: ' . $githubAppName, 'Accept: ' . 'application/vnd.github.v3.raw+json']
467+
['User-Agent: ' . $githubAppName, 'Accept: application/vnd.github.v3.json']
468468
), true);
469469

470470
return $jsonDecodedContent;

0 commit comments

Comments
 (0)