Skip to content

Commit

Permalink
Merge pull request subzeroid#769 from trevtravtrev/master
Browse files Browse the repository at this point in the history
Fix to critical codebase breaking JSON parse error from public_a1_request
  • Loading branch information
adw0rd authored Jul 13, 2022
2 parents 392a1dd + cb241ee commit e12000d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions instagrapi/mixins/public.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,9 +166,9 @@ def _send_public_request(
def public_a1_request(self, endpoint, data=None, params=None, headers=None):
url = self.PUBLIC_API_URL + endpoint.lstrip("/")
if params:
params.update({"__a": 1})
params.update({"__a": 1,'__d':'dis'})
else:
params = {"__a": 1}
params = {"__a": 1,'__d':'dis'}

response = self.public_request(
url, data=data, params=params, headers=headers, return_json=True
Expand Down

0 comments on commit e12000d

Please sign in to comment.