Move ref attribute in the url in archive function

On the GitHub API (https://developer.github.com/v3/repos/contents/#get-archive-link), the parameter ref must be defined in the url if necessary.

When I try to download the archive from a specific branch with the current version, I still get the content of the master branch.