python-tackerclient drop content-type when using HTTPClient
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tacker |
New
|
Undecided
|
Unassigned |
Bug Description
If the `_cs_request()` method called by `do_request()` of HTTPClient class (in python-tackerclient code) [1] contains `content-type` in `kwargs`, an error occurs if `content-type` is not `application/json` because `content-type` has not copied to the kargs passed to request.
```
L83~
def _cs_request(self, *args, **kwargs):
kargs = {}
if 'body' in kwargs:
*** Not dealing with `content-type` in kwargs ***
if self.log_
else:
try:
resp, body = self.request(*args, **kargs)
```