diff --git a/lib/Github/Api/Issue/Comments.php b/lib/Github/Api/Issue/Comments.php index 396f5060893..1c10dd3961d 100644 --- a/lib/Github/Api/Issue/Comments.php +++ b/lib/Github/Api/Issue/Comments.php @@ -27,8 +27,8 @@ class Comments extends AbstractApi */ public function configure($bodyType = null) { - if (!in_array($bodyType, ['raw', 'text', 'html'])) { - $bodyType = 'full'; + if (!in_array($bodyType, ['text', 'html', 'full'])) { + $bodyType = 'raw'; } $this->acceptHeaderValue = sprintf('application/vnd.github.%s.%s+json', $this->client->getApiVersion(), $bodyType); diff --git a/lib/Github/Api/Repository/Comments.php b/lib/Github/Api/Repository/Comments.php index 53feb72cd31..5417a41b670 100644 --- a/lib/Github/Api/Repository/Comments.php +++ b/lib/Github/Api/Repository/Comments.php @@ -27,8 +27,8 @@ class Comments extends AbstractApi */ public function configure($bodyType = null) { - if (!in_array($bodyType, ['raw', 'text', 'html'])) { - $bodyType = 'full'; + if (!in_array($bodyType, ['text', 'html', 'full'])) { + $bodyType = 'raw'; } $this->acceptHeaderValue = sprintf('application/vnd.github.%s.%s+json', $this->client->getApiVersion(), $bodyType);