Skip to content

Commit

Permalink
BUG: Restore header arguments
Browse files Browse the repository at this point in the history
Restore header argument that was removed by pydata#515
  • Loading branch information
bashtage committed Apr 13, 2018
1 parent 8699ddf commit b85c98a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pandas_datareader/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ def _sanitize_response(response):
"""
return response.content

def _get_response(self, url, params=None):
def _get_response(self, url, params=None, headers=None):
""" send raw HTTP request to get requests.Response from the specified url
Parameters
----------
Expand All @@ -128,7 +128,8 @@ def _get_response(self, url, params=None):
last_response_text = ''
for i in range(self.retry_count + 1):
response = self.session.get(url,
params=params)
params=params,
headers=headers)
if response.status_code == requests.codes.ok:
return response

Expand Down

0 comments on commit b85c98a

Please sign in to comment.