KITAITI Makoto
null+****@clear*****
Sun Feb 7 01:18:52 JST 2016
KITAITI Makoto 2016-02-07 01:18:52 +0900 (Sun, 07 Feb 2016) New Revision: 1511e5afb1612eb7f50f304852f04c49e8a6af97 https://github.com/ranguba/groonga-client/commit/1511e5afb1612eb7f50f304852f04c49e8a6af97 Merged 52b0230: Merge pull request #6 from KitaitiMakoto/load-bug Message: Make request path an instance variable on test Modified files: test/test-client.rb Modified: test/test-client.rb (+3 -2) =================================================================== --- test/test-client.rb 2016-02-07 00:39:41 +0900 (ad0df2c) +++ test/test-client.rb 2016-02-07 01:18:52 +0900 (920dc30) @@ -326,6 +326,7 @@ JSON setup_authentication @request_headers = {} + @request_path = nil @actual_commands = [] @response_body = nil @thread = Thread.new do @@ -333,7 +334,7 @@ JSON first_line = client.gets if /\A([\w]+) ([^ ]+) HTTP/ =~ first_line # http_method = $1 - path = $2 + @request_path = $2 headers = {} client.each_line do |line| case line @@ -351,7 +352,7 @@ JSON else body = nil end - command = Groonga::Command::Parser.parse(path) + command = Groonga::Command::Parser.parse(@request_path) command[:values] = body if body @actual_commands << command end -------------- next part -------------- HTML����������������������������...Download