Skip to content

Commit ff458a2

Browse files
committed
Restore modification committed by mistake
1 parent 520ffb9 commit ff458a2

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

lib/Github/Api/Repository/Contents.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -273,11 +273,9 @@ public function archive($username, $repository, $format, $reference = null)
273273
*
274274
* @return string|null content of file, or null in case of base64_decode failure
275275
*/
276-
public function download($username, $repository, $path, $reference = null, $bodyType = null)
276+
public function download($username, $repository, $path, $reference = null)
277277
{
278-
$file = $this->show($username, $repository, $path, $reference,[
279-
'Accept' => 'application/vnd.github.VERSION.raw'
280-
]);
278+
$file = $this->show($username, $repository, $path, $reference);
281279

282280
if (!isset($file['type']) || !in_array($file['type'], ['file', 'symlink'], true)) {
283281
throw new InvalidArgumentException(sprintf('Path "%s" is not a file or a symlink to a file.', $path));

0 commit comments

Comments
 (0)