KITAITI Makoto
null+****@clear*****
Fri Feb 5 13:31:54 JST 2016
KITAITI Makoto 2016-02-05 13:31:54 +0900 (Fri, 05 Feb 2016) New Revision: 58da31e4a4492df39a3c3ad8b2a064ae56ab79be https://github.com/ranguba/groonga-client/commit/58da31e4a4492df39a3c3ad8b2a064ae56ab79be Merged 41a8b86: Merge pull request #4 from KitaitiMakoto/basic-auth Message: Use common variable Modified files: lib/groonga/client/protocol/http/synchronous.rb Modified: lib/groonga/client/protocol/http/synchronous.rb (+2 -2) =================================================================== --- lib/groonga/client/protocol/http/synchronous.rb 2016-02-06 14:09:57 +0900 (33fc596) +++ lib/groonga/client/protocol/http/synchronous.rb 2016-02-05 13:31:54 +0900 (73865bc) @@ -100,10 +100,10 @@ module Groonga end def send_request(http, command) + path = command.to_uri_format if command.name == "load" raw_values = command[:values] command[:values] = nil - path = command.to_uri_format command[:values] = raw_values request = Net::HTTP::Post.new(path, headers) request.content_type = "application/json" @@ -111,7 +111,7 @@ module Groonga request.body_stream = StringIO.new(raw_values) http.request(request) else - http.get(command.to_uri_format, headers) + http.get(path, headers) end end -------------- next part -------------- HTML����������������������������...Download