sigmavirus24/github3.py — pull request #288 by eugef (2014-10-29 14:38:11+00:00)
Title: Use separate session to download assets from AWS

This fixes an error "Only one auth mechanism allowed; only the X-Amz-Algorithm query parameter, Signature query string parameter or the Authorization header should be specified" which occurs when downloading asset for the release.

The easiest fix is to use another Session as clearing headers doesn't work properly.

Steps to reproduce an issue:
- Create repository, push tag 'v1' and create a release for that tag
- Upload asset (for example 'build.tar.gz')
- Try to use following code to download that asset

```python

import github3

github = github3.login('username', 'password')
repository = github.repository('repository_owner', 'repository_name')

for release in repository.iter_releases():
if release.tag_name == 'v1':
for asset in release.assets:
if asset.name == 'build.tar.gz':
asset.download()

```