Skip to content

Commit e6d36a2

Browse files
committed
Reset always_sign_api_key and header_authentication to its original User-set values as these might be affected when self.account_information() was executed
1 parent 32eeab3 commit e6d36a2

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

domaintools/api.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,12 @@ def _rate_limit(self):
126126
def _results(self, product, path, cls=Results, **kwargs):
127127
"""Returns _results for the specified API path with the specified **kwargs parameters"""
128128
if product != "account-information" and self.rate_limit and not self.limits_set and not self.limits:
129+
always_sign_api_key_previous_value = self.always_sign_api_key
130+
header_authentication_previous_value = self.header_authentication
129131
self._rate_limit()
132+
# Reset always_sign_api_key and header_authentication to its original User-set values as these might be affected when self.account_information() was executed
133+
self.always_sign_api_key = always_sign_api_key_previous_value
134+
self.header_authentication = header_authentication_previous_value
130135

131136
uri = "/".join((self._rest_api_url, path.lstrip("/")))
132137
parameters = self.default_parameters.copy()

0 commit comments

Comments
 (0)