From 18284e7829f30ad6dd7f10d9bea2ab1be869f412 Mon Sep 17 00:00:00 2001 From: Duane Johnson Date: Tue, 11 Sep 2012 21:00:21 -0500 Subject: [PATCH] Added the `--data-binary` curl switch in Index#bulk_store Closes #452 --- lib/tire/index.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/tire/index.rb b/lib/tire/index.rb index 63b3ca86..6e9bfe15 100644 --- a/lib/tire/index.rb +++ b/lib/tire/index.rb @@ -122,7 +122,7 @@ def bulk_store(documents, options={}) end ensure - curl = %Q|curl -X POST "#{url}/_bulk" -d '{... data omitted ...}'| + curl = %Q|curl -X POST "#{url}/_bulk" --data-binary '{... data omitted ...}'| logged('BULK', curl) end end