Navigation Menu

Skip to content

Commit

Permalink
Merge pull request #92 from irqed/auth_session
Browse files Browse the repository at this point in the history
Add auth to request session if it's passed. Fixes #79
  • Loading branch information
samgiles committed Jan 11, 2015
2 parents 766d2e8 + 87e8738 commit e6997aa
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions slumber/__init__.py
Expand Up @@ -184,6 +184,8 @@ def __init__(self, base_url=None, auth=None, format=None, append_slash=True, ses

if session is None:
session = requests.session()

if auth is not None:
session.auth = auth

self._store = {
Expand Down

0 comments on commit e6997aa

Please sign in to comment.