Skip to content

Commit

Permalink
k
Browse files Browse the repository at this point in the history
  • Loading branch information
cengizili committed Jan 26, 2024
1 parent 314d946 commit 856a82e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions instagrapi/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ def __init__(
settings: dict = {},
proxy: str = None,
delay_range: list = None,
user_headers: dict = {},
logger=DEFAULT_LOGGER,
**kwargs,
):
Expand All @@ -104,6 +105,7 @@ def __init__(
self.settings = settings
self.logger = logger
self.delay_range = delay_range
self.user_headers = user_headers

self.set_proxy(proxy)

Expand Down
2 changes: 1 addition & 1 deletion instagrapi/mixins/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ def init(self) -> bool:
self.set_ig_u_rur(self.settings.get("ig_u_rur"))
self.set_ig_www_claim(self.settings.get("ig_www_claim"))
# init headers
headers = self.base_headers
headers = self.user_headers or self.base_headers
headers.update({"Authorization": self.authorization})
self.private.headers.update(headers)
return True
Expand Down

0 comments on commit 856a82e

Please sign in to comment.