Skip to content

Commit

Permalink
Rename header Content-type to Content-Type.
Browse files Browse the repository at this point in the history
oauth2 is pretty strict about the uppercase T and basically ruins
the request: It doesn't put the OAuth data in the request's headers
but replaces the body instead. Refs #42.
  • Loading branch information
iksteen committed May 26, 2014
1 parent 8a1c24f commit 3e0369f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion trello/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ def fetch_json(
""" Fetch some JSON from Trello """

if http_method in ("POST", "PUT", "DELETE"):
headers['Content-type'] = 'application/json'
headers['Content-Type'] = 'application/json'

headers['Accept'] = 'application/json'
url = self.build_url(uri_path, query_params)
Expand Down

0 comments on commit 3e0369f

Please sign in to comment.