Skip to content

Commit c2bdf92

Browse files
committed
fix path
1 parent 895c7c1 commit c2bdf92

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Github/Api/User.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ public function repositories($username, $type = 'owner', $sort = 'full_name', $d
175175
*/
176176
public function repos($username = null, array $options = array())
177177
{
178-
$url = $username ? 'users/'.rawurldecode($username).'/repos' : 'user/repos';
178+
$url = $username ? '/users/'.rawurldecode($username).'/repos' : 'user/repos';
179179

180180
return $this->get($url, $options);
181181
}

0 commit comments

Comments
 (0)