Closed chmike closed 5 years ago
At line 21, you have the instruction :
header={'content-type': 'application/json'}
But this variable is never used.
You then have the instruction:
r = self.sess.post(url, data=json.dumps(payload))
Shouldn't it be :
r = self.sess.post(url, headers=header, data=json.dumps(payload))
Or something like that ?
Another possibility could be to write
self.sess.headers.update({'content-type': 'application/json'})
Which would ensure that every request has this header.
Well spoted :+1: It has been resolved now.
At line 21, you have the instruction :
But this variable is never used.
You then have the instruction:
Shouldn't it be :
Or something like that ?