Skip to content

Update api.py, because wrong content type

kcorlidy requested to merge kcorlidy/minds-api:patch-1 into master

Update api.py, because i saw a question on SO(https://stackoverflow.com/questions/53710659/unable-to-authenitcate-with-python-minds-api). After compare to browser request again and again. The reason why occurred error is you gave a wrong content-type, but actually you need to send as json data (it seems website is making joke). So you need to specify headers["content-type"] = "text/plain". Otherwise website will response 500.

Merge request reports