Skip to content

Commit 38c0caa

Browse files
committed
Explicitly log the empty body of API response with zero content-length
1 parent c796318 commit 38c0caa

File tree

1 file changed

+1
-1
lines changed
  • python/neutron-understack/neutron_understack

1 file changed

+1
-1
lines changed

python/neutron-understack/neutron_understack/nautobot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def make_api_request(
6262
except requests.exceptions.JSONDecodeError:
6363
response_data = {"body": response.content}
6464
else:
65-
response_data = {"status_code": response.status_code}
65+
response_data = {"status_code": response.status_code, "body": ""}
6666

6767
if response.status_code >= 300:
6868
raise NautobotRequestError(

0 commit comments

Comments
 (0)