Skip to content

Commit

Permalink
BUG FIX : forgot to use the endpoint from the instance and also assig…
Browse files Browse the repository at this point in the history
…n payload to param. Bug caught by the flake8 in the CI tests.
  • Loading branch information
akamhy committed Jan 24, 2022
1 parent 06fc785 commit 0609520
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions waybackpy/cdx_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def cdx_api_manager(self, payload, headers, use_page=False):
for i in range(total_pages):
payload["page"] = str(i)

url = full_url(endpoint, params)
url = full_url(self.endpoint, params=payload)
res = get_response(url, headers=headers)

self.last_api_request_url = url
Expand All @@ -81,7 +81,7 @@ def cdx_api_manager(self, payload, headers, use_page=False):
if resumeKey:
payload["resumeKey"] = resumeKey

url = full_url(endpoint, params)
url = full_url(self.endpoint, params=payload)
res = get_response(url, headers=headers)

self.last_api_request_url = url
Expand Down

0 comments on commit 0609520

Please sign in to comment.