Permalink
Browse files

Fix bug with archive_link for private repo

  • Loading branch information...
1 parent 7a67f4b commit 8db3df37fad3a021eb8036b007c718149836cb32 @pengwynn pengwynn committed Oct 31, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/octokit/client/contents.rb
@@ -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

0 comments on commit 8db3df3

Please sign in to comment.