Permalink
Browse files

Riak 1.3 requires content-type header as application/json. Otherwise …

…it complains about missing function_clause.
  • Loading branch information...
1 parent 16e5b66 commit 47d702c85377c0880cabc53e6db86118ecddb7ef @kthakore kthakore committed Apr 6, 2013
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/Net/Riak/Role/REST/MapReduce.pm
@@ -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);

0 comments on commit 47d702c

Please sign in to comment.