[Groonga-commit] ranguba/groonga-client at b2b8a1b [master] Revert "Use common variable"

Back to archive index

KITAITI Makoto null+****@clear*****
Sun Feb 7 00:39:41 JST 2016


KITAITI Makoto	2016-02-07 00:39:41 +0900 (Sun, 07 Feb 2016)

  New Revision: b2b8a1b079d53ebbfb80f2ccb424dfe7fcb07a05
  https://github.com/ranguba/groonga-client/commit/b2b8a1b079d53ebbfb80f2ccb424dfe7fcb07a05

  Merged 52b0230: Merge pull request #6 from KitaitiMakoto/load-bug

  Message:
    Revert "Use common variable"
    
    This reverts commit 58da31e4a4492df39a3c3ad8b2a064ae56ab79be.

  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-07 00:38:16 +0900 (0898bd2)
+++ lib/groonga/client/protocol/http/synchronous.rb    2016-02-07 00:39:41 +0900 (17d84d6)
@@ -100,17 +100,17 @@ 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"
               request.content_length = raw_values.bytesize
               request.body_stream = StringIO.new(raw_values)
             else
-              request = Net::HTTP::Get.new(path, headers)
+              request = Net::HTTP::Get.new(command.to_uri_format, headers)
             end
             setup_authentication(request)
             http.request(request)
-------------- next part --------------
HTML����������������������������...
Descargar 



More information about the Groonga-commit mailing list
Back to archive index