You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm having trouble setting custom headers on the db.save() method. With curl it works just fine. Am I doing something wrong? I'm using version "riak-js": "0.10.2"
// Request header is not set
db.save("test", 1, "hello", {debug:true, custom:'not storing this value anywhere'});
// Request header is not set
db.save("test", 1, "hello", {debug:true, 'X-Riak-Meta-Custom': 'not storing this value eigther'});
I'm having trouble setting custom headers on the db.save() method. With curl it works just fine. Am I doing something wrong? I'm using version "riak-js": "0.10.2"
// Header IS set.
curl -v -XPOST 'localhost:8098/riak/test/1'
-H 'Content-Type: text/plain'
-H 'X-Riak-Meta-Custom: saved_just_fine'
-d 'hello'
The text was updated successfully, but these errors were encountered: