diff --git a/github.js b/github.js index ab94104d..1f19e057 100644 --- a/github.js +++ b/github.js @@ -440,7 +440,7 @@ // -------- this.contents = function(branch, path, cb, sync) { - return _request("GET", repoPath + "/contents?ref=" + branch + (path ? "&path=" + path : ""), null, cb, 'raw', sync); + return _request("GET", repoPath + "/contents/" + path + "?ref=" + branch, null, cb, 'raw', sync); }; // Fork repository