Browse files

encode options.index on bulk index method

  • Loading branch information...
1 parent d73f5f5 commit cb9c89a9456e07c5cdaee3b01166db8e98152100 @mehtryx mehtryx committed May 15, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/index.js
View
2 lib/index.js
@@ -137,7 +137,7 @@ Index.bulk = function (client, operations, options, callback) {
url = '/_bulk';
if (options.index) {
- url = '/' + options.index + '/_bulk';
+ url = '/' + encode(options.index) + '/_bulk';
delete options.index;
}

0 comments on commit cb9c89a

Please sign in to comment.