Skip to content
This repository has been archived by the owner on Aug 28, 2023. It is now read-only.

Commit

Permalink
Riak 1.3 requires content-type header as application/json. Otherwise …
Browse files Browse the repository at this point in the history
…it complains about missing function_clause.
  • Loading branch information
Kartik Thakore committed Apr 6, 2013
1 parent 16e5b66 commit 47d702c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/Net/Riak/Role/REST/MapReduce.pm
Expand Up @@ -22,6 +22,7 @@ sub execute_job {
'POST', [$self->mapred_prefix]
);
$request->content($content);
$request->header( 'Content-Type' => 'application/json' );

my $response = $self->send_request($request);

Expand Down

0 comments on commit 47d702c

Please sign in to comment.