Skip to content

Commit

Permalink
return response instead of raw for stream requests
Browse files Browse the repository at this point in the history
- enables use of iterator
- https://requests.readthedocs.io/en/latest/user/quickstart.html\#raw-response-content

Signed-off-by: Alex Kwiatkowski <alex+git@fremantle.io>
  • Loading branch information
rupurt committed Dec 22, 2023
1 parent 8c9580a commit a1770cb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ All notable changes to the Zowe Client Python SDK will be documented in this fil
### Bug Fixes

- Fixed 'create_data_set' to accept "FBA", "FBM", "VBA", "VBM" as valid recfm [#240](https://github.com/zowe/zowe-client-python-sdk/issues/240)
- Return response instead of raw from streamed requests

## `1.0.0-dev12`

Expand Down
2 changes: 1 addition & 1 deletion src/core/zowe/core_for_zowe_sdk/request_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def perform_streamed_request(self, method, request_arguments, expected_code=[200
self.__validate_method()
self.__send_request(stream=True)
self.__validate_response()
return self.response.raw
return self.response

def __validate_method(self):
"""Check if the input request method for the request is supported.
Expand Down

0 comments on commit a1770cb

Please sign in to comment.