Commits

Anonymous committed 09548d2

Fix for handling of the X-Riak-Meta-* headers. Thanks, Jonathan Lee <jonathan_lee@comcast.com>.

  • Participants
  • Parent commits 6f49c17

Comments (0)

Files changed (2)

File apps/riak/src/raw_http.hrl

 -define(HEAD_LINK,            "Link").
 -define(HEAD_ENCODING,        "Content-Encoding").
 -define(HEAD_CLIENT,          "X-Riak-ClientId").
--define(HEAD_USERMETA_PREFIX, "X-Riak-Meta-").
+-define(HEAD_USERMETA_PREFIX, "x-riak-meta-").
 
 %% Names of JSON fields in bucket properties
 -define(JSON_PROPS,   <<"props">>).

File apps/riak/src/raw_http_resource.erl

     lists:filter(fun({K,_V}) ->
                     lists:prefix(
                         ?HEAD_USERMETA_PREFIX,
-                        any_to_list(K))
+                        string:to_lower(any_to_list(K)))
                 end,
                 mochiweb_headers:to_list(wrq:req_headers(RD))).