Skip to content

Commit

Permalink
Fix bug with archive_link for private repo
Browse files Browse the repository at this point in the history
  • Loading branch information
pengwynn committed Oct 31, 2012
1 parent 7a67f4b commit 8db3df3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/octokit/client/contents.rb
Expand Up @@ -43,7 +43,7 @@ def archive_link(repo, options={})
repo_ref = options.delete :ref
format = (options.delete :format) || 'tarball'
url = "repos/#{Repository.new repo}/#{format}/#{repo_ref}"
headers = get(url, options, 3, false, true).headers
headers = get(url, options, 3, true, true).headers
return headers['location']
end
end
Expand Down

0 comments on commit 8db3df3

Please sign in to comment.