diff --git a/ofscraper/classes/sessionmanager.py b/ofscraper/classes/sessionmanager.py index 5801bba7c..bdbd26a05 100644 --- a/ofscraper/classes/sessionmanager.py +++ b/ofscraper/classes/sessionmanager.py @@ -263,15 +263,14 @@ def _create_headers( url, sign, forced, - refresh ): headers = headers or {} headers.update(auth_requests.make_headers()) - headers = self._create_sign(headers, url, forced=forced,refresh=refresh) if sign is None else headers + headers = self._create_sign(headers, url, forced=forced) if sign is None else headers return headers - def _create_sign(self, headers, url, refresh=None,forced=None): - auth_requests.create_sign(url, headers, refresh=refresh,forced=forced) + def _create_sign(self, headers, url,forced=None): + auth_requests.create_sign(url, headers,forced=forced) return headers def _create_cookies(self): @@ -330,7 +329,7 @@ def requests( sleeper.do_sleep() # remake each time headers = ( - self._create_headers(headers, url, sign, False,forced) + self._create_headers(headers, url, sign,forced) if (headers is None) or forced or sign else None ) @@ -426,7 +425,7 @@ async def requests_async( try: await sleeper.async_do_sleep() headers = ( - self._create_headers(headers, url, sign, forced,False) + self._create_headers(headers, url, sign, forced) if (headers is None) or forced or sign else headers )