summary refs log tree commit diff
path: root/lib/Net
diff options
context:
space:
mode:
authorRobin Edwards <robin.ge@gmail.com>2013-04-08 03:09:08 -0700
committerRobin Edwards <robin.ge@gmail.com>2013-04-08 03:09:08 -0700
commit3762896cd33b1c19d2017bd97fe05cc31d216f5a (patch)
treefccd730a29223bc1e54f47e1843d17a5859fa19a /lib/Net
parentFix redeclaration warning (diff)
parentRiak 1.3 requires content-type header as application/json. Otherwise it compl... (diff)
downloadnet-riak-3762896cd33b1c19d2017bd97fe05cc31d216f5a.tar.gz
Merge pull request #26 from kthakore/master
Missing content-type header
Diffstat (limited to 'lib/Net')
-rw-r--r--lib/Net/Riak/Role/REST/MapReduce.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Net/Riak/Role/REST/MapReduce.pm b/lib/Net/Riak/Role/REST/MapReduce.pm
index e987a21..e5a6f66 100644
--- a/lib/Net/Riak/Role/REST/MapReduce.pm
+++ b/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);