Permalink
Browse files

Removed the list_to_binary() for ContenType. Content Types *should* b…

…e lists.
  • Loading branch information...
1 parent 9201eac commit b160bb9007cce4a4e16cda8e6c83bdd7c48139ef @fakepop fakepop committed Jun 3, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 other/erlang/bucket_importer.erl
@@ -26,7 +26,7 @@
import_data(ToServer, Bucket, Directory, ContentType) ->
{ok, Client} = riak:client_connect(ToServer),
FL = filelib:fold_files(Directory, ".*", true, fun(F, L) -> [F|L] end, []),
- [ load_data(F, Client, list_to_binary(Bucket), list_to_binary(ContentType)) || F <- FL ].
+ [ load_data(F, Client, list_to_binary(Bucket), ContentType) || F <- FL ].
load_data(FName, Client, Bucket, ContentType) ->
case file:read_file(FName) of

0 comments on commit b160bb9

Please sign in to comment.