Skip to content

Commit

Permalink
Update request_handler.py
Browse files Browse the repository at this point in the history
Signed-off-by: pem70 <[email protected]>
  • Loading branch information
pem70 committed Jul 15, 2024
1 parent c1c8833 commit 46ea1fa
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/core/zowe/core_for_zowe_sdk/request_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,11 +135,12 @@ def __validate_response(self):
raise RequestFailed(self.__response.status_code, output_str)

def __normalize_response(self) -> Union[str, bytes, dict]:
"""Normalize the response object to a JSON format.
"""
Normalize the response object to a JSON format.
Returns
-------
str | bytes | dict
Union[str, bytes, dict]
Response object at the format based on Content-Type header:
- `bytes` when the response is binary data
- `str` when the response is plain text
Expand Down

0 comments on commit 46ea1fa

Please sign in to comment.