[Groonga-commit] groonga/grntest [master] Match a http response with gqtp one

Back to archive index

null+****@clear***** null+****@clear*****
2012年 6月 7日 (木) 12:52:55 JST


Haruka Yoshihara	2012-06-07 12:52:55 +0900 (Thu, 07 Jun 2012)

  New Revision: 5200d544f63a7732406b9deeaca40859456c5192

  Log:
    Match a http response with gqtp one

  Modified files:
    lib/groonga/tester.rb

  Modified: lib/groonga/tester.rb (+3 -1)
===================================================================
--- lib/groonga/tester.rb    2012-06-07 11:18:21 +0900 (aecbdf7)
+++ lib/groonga/tester.rb    2012-06-07 12:52:55 +0900 (8cde9e5)
@@ -690,9 +690,11 @@ module Groonga
       def send_command(command_line)
         converter = CommandFormatConverter.new(command_line)
         url = "http://#{@host}:#{@port}#{converter.to_url}"
+        response_content = ""
         open(url) do |response|
-          response.read
+          response_content = response.read
         end
+        "#{response_content}\n"
       end
 
       def ensure_groonga_ready




Groonga-commit メーリングリストの案内
Back to archive index