Skip to content

Commit

Permalink
Merge pull request #130 from basho/wrd-json-ctype-for-mapred-request
Browse files Browse the repository at this point in the history
Add a proper content-type to map reduce requests
  • Loading branch information
reiddraper committed Jun 19, 2012
2 parents 3a6eee0 + 332e039 commit 0ee1605
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion riak/transports/http.py
Expand Up @@ -236,7 +236,8 @@ def mapred(self, inputs, query, timeout=None):

# Do the request...
url = "/" + self._mapred_prefix
response = self.http_request('POST', url, {}, content)
headers = {'Content-Type': 'application/json'}
response = self.http_request('POST', url, headers, content)

# Make sure the expected status code came back...
status = response[0]['http_code']
Expand Down

0 comments on commit 0ee1605

Please sign in to comment.