Banging head against wall with erlang pb client

Jon Brisbin jon at jbrisbin.com
Thu Mar 31 18:58:19 EDT 2011


I know I'm doing something obvious wrong, but I can't seem to make this:

{riakc_obj,<<"riak">>,<<"test">>,undefined,[],
                    {dict,2,16,16,8,80,48,
                          {[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[]},
                          {{[],[],
                            [[<<"test">>|<<"header">>]],
                            [],[],[],[],[],[],[],
                            [[<<"content-type">>|<<"text/plain">>]],
                            [],[],[],[],[]}}},
                    <<"Hello World!">>}

appear correctly in the database. It has the wrong content-type:

HTTP/1.1 200 OK
X-Riak-Vclock: a85hYGBgzGDKBVIsDJYbJTOYEhnzWBkymjiP82UBAA==
Vary: Accept-Encoding
Server: MochiWeb/1.1 WebMachine/1.7.3 (participate in the frantic)
Link: </riak/riak>; rel="up"
Last-Modified: Thu, 31 Mar 2011 22:55:36 GMT
Etag: "5Pkvq3UKB5dl5ltv1YtcdD"
Date: Thu, 31 Mar 2011 22:55:43 GMT
Content-Type: application/octet-stream
Content-Length: 12

Hello World!

The custom headers are also not showing up.

What am I not doing here?

Thanks!

Jon Brisbin

http://jbrisbin.com
Twitter: @j_brisbin






More information about the riak-users mailing list