Skip to content

Commit

Permalink
Set required user agent
Browse files Browse the repository at this point in the history
  • Loading branch information
bogdal committed Aug 9, 2016
1 parent ca3ef9e commit 9442f67
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions freepacktbook/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ class FreePacktBook(object):

def __init__(self, email=None, password=None):
self.session = Session()
self.session.headers.update({'User-Agent': 'FreePacktBook'})
self.email = email
self.password = password

Expand Down

0 comments on commit 9442f67

Please sign in to comment.