Kouhei Sutou
null+****@clear*****
Mon Oct 14 22:53:19 JST 2013
Kouhei Sutou 2013-10-14 22:53:19 +0900 (Mon, 14 Oct 2013) New Revision: 02703be8ecd61e2022ce494cd2f00cc29c1d396e https://github.com/groonga/grntest/commit/02703be8ecd61e2022ce494cd2f00cc29c1d396e Message: http: don't add a new line for empty response Modified files: lib/grntest/executors/http-executor.rb Modified: lib/grntest/executors/http-executor.rb (+3 -1) =================================================================== --- lib/grntest/executors/http-executor.rb 2013-10-14 22:51:47 +0900 (cfcd497) +++ lib/grntest/executors/http-executor.rb 2013-10-14 22:53:19 +0900 (79fc7f2) @@ -32,7 +32,9 @@ module Grntest url = "http://#{@host}:#{@port}#{command.to_uri_format}" begin open(url) do |response| - "#{response.read}\n" + response_data = response.read + response_data << "\n" unless response_data.empty? + response_data end rescue OpenURI::HTTPError $!.io.read -------------- next part -------------- HTML����������������������������... 下载