Skip to content

Commit b1177f2

Browse files
committed
feat: Only override content-type if it is none
* Only override content-type if it is none
1 parent d9aa1d4 commit b1177f2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ibm_cloud_sdk_core/base_service.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,8 @@ def prepare_request(self,
292292

293293
if data and isinstance(data, dict):
294294
data = remove_null_values(data)
295-
headers.update({'content-type': 'application/json'})
295+
if headers.get('content-type') is None:
296+
headers.update({'content-type': 'application/json'})
296297
data = json_import.dumps(data)
297298
request['data'] = data
298299

0 commit comments

Comments
 (0)