okta / okta-sdk-python

Apache License 2.0
234 stars 143 forks source link

Response Headers not updated after next request #359

Open EyalC0 opened 1 year ago

EyalC0 commented 1 year ago

The get_headers() function returns the same headers after calling the next function, preventing implementation of pagination rate limiter

EyalC0 commented 1 year ago

Suggestion Add the line self._resp_headers = res_details.headers in the api_response.py after the line self._next = next_response._next

bryanapellanes-okta commented 1 year ago

@EyalC0 Thank you for submitting this. We will review further internally; see comment here: https://github.com/okta/okta-sdk-python/pull/364#issuecomment-1691725925

Internal Ref#: OKTA-641384