Skip to content

Commit d42c54b

Browse files
committed
Use /:path instead of ?path=:path to get contents
1 parent 5ef36d7 commit d42c54b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

github.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -497,7 +497,7 @@
497497
// --------
498498

499499
this.contents = function(ref, path, cb) {
500-
_request("GET", repoPath + "/contents/"+path, { ref: ref }, cb);
500+
_request("GET", repoPath + "/contents" + (path ? "/" + path : ""), { ref: ref }, cb);
501501
};
502502

503503
// Fork repository

0 commit comments

Comments
 (0)