Skip to content

Commit

Permalink
use single quotes when passing the URL to curl
Browse files Browse the repository at this point in the history
Signed-off-by: Will Leinweber <will@bitfission.com>
  • Loading branch information
kowsik authored and will committed Dec 20, 2010
1 parent 87268cc commit 12828d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/couchrest/helper/streamer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def view name, params = nil, &block
url = CouchRest.paramify_url urlst, params
# puts "stream #{url}"
first = nil
IO.popen("curl --silent \"#{url}\"") do |view|
IO.popen("curl --silent '#{url}'") do |view|
first = view.gets # discard header
while line = view.gets
row = parse_line(line)
Expand Down

0 comments on commit 12828d3

Please sign in to comment.