cenkalti / github-flask

🍾 Flask extension for GitHub API

Home Page:https://github-flask.readthedocs.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Content-type mismatch of POST data

woodb opened this issue · comments

It looks like the Content-Type of POST data is currently set to application/x-www-form-urlencoded, even though the data are encoded as JSON.

I might be missing a nuance of the GitHub API, but should we consider changing this to application/json instead to match?

By the way, I will gladly file a PR to fix this and #22, but I don't want dig in until PR #19 gets merged @cenkalti, what do you think?

So I ended up just adding this to PR #19, along with #22, since I had time 😸

👍