Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

db.save not saving custom headers #211

Open
seggy opened this issue Mar 2, 2014 · 0 comments
Open

db.save not saving custom headers #211

seggy opened this issue Mar 2, 2014 · 0 comments

Comments

@seggy
Copy link

seggy commented Mar 2, 2014

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'});

// 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'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant