diff options
author | Robin Edwards <robin.ge@gmail.com> | 2013-04-08 03:09:08 -0700 |
---|---|---|
committer | Robin Edwards <robin.ge@gmail.com> | 2013-04-08 03:09:08 -0700 |
commit | 3762896cd33b1c19d2017bd97fe05cc31d216f5a (patch) | |
tree | fccd730a29223bc1e54f47e1843d17a5859fa19a /lib/Net | |
parent | Fix redeclaration warning (diff) | |
parent | Riak 1.3 requires content-type header as application/json. Otherwise it compl... (diff) | |
download | net-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.pm | 1 |
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); |