diff --git a/ari/model.py b/ari/model.py index f18ccdc..ddf70c7 100644 --- a/ari/model.py +++ b/ari/model.py @@ -367,6 +367,8 @@ def promote(client, resp, operation_json): return factory(client, resp_json) if resp.status_code == requests.codes.no_content: return None + if response_class == 'binary': + return resp.content log.info("No mapping for %s; returning JSON" % response_class) return resp.json()