Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix bug with archive_link for private repo

  • Loading branch information...
commit 8db3df37fad3a021eb8036b007c718149836cb32 1 parent 7a67f4b
Wynn Netherland pengwynn authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/octokit/client/contents.rb
2  lib/octokit/client/contents.rb
View
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.