Skip to content

Commit be80c47

Browse files
James Stronzcomrumino
James Stronz
authored andcommitted
Fixed okta#435: added data_type parameter for OktaAPIResponse so that next_response has a type consistent with the previous response.
- fixes test_response_pagination_with_next_include_response failure
1 parent 4cd88bc commit be80c47

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

okta/api_response.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ async def get_next(self):
180180
if next_request:
181181
# create new response and update generator values
182182
next_response = OktaAPIResponse(
183-
self._request_executor, req, res_details, resp_body)
183+
self._request_executor, req, res_details, resp_body, self._type)
184184
self._next = next_response._next
185185
# yield next page
186186
yield (next_response.get_body(), None, next_response)

0 commit comments

Comments
 (0)