Skip to content

Commit 89c71de

Browse files
committed
dont require encoding
fixes #1042
1 parent c230ab0 commit 89c71de

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/Github/Api/GitData/Blobs.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ public function show($username, $repository, $sha)
5959
*/
6060
public function create($username, $repository, array $params)
6161
{
62-
if (!isset($params['content'], $params['encoding'])) {
63-
throw new MissingArgumentException(['content', 'encoding']);
62+
if (!isset($params['content'])) {
63+
throw new MissingArgumentException('content');
6464
}
6565

6666
return $this->post('/repos/'.rawurlencode($username).'/'.rawurlencode($repository).'/git/blobs', $params);

0 commit comments

Comments
 (0)