Skip to content

Commit

Permalink
commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacob Knightley authored and Jacob Knightley committed Jan 17, 2025
1 parent ea633da commit 12f1f3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fabric_cicd/_common/_fabric_endpoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,4 +237,4 @@ def _format_invoke_log(response, method, url, body):

def _parse_json_body(response, default_return, alt_return):
"""Parses the response body if the body is of json type"""
return default_return if response.headers.get("Content-Type") == "application/json" else alt_return
return default_return if "application/json" in response.headers.get("Content-Type") else alt_return

0 comments on commit 12f1f3c

Please sign in to comment.