[Groonga-commit] ranguba/groonga-client at d313733 [master] Extract common behavior

Back to archive index

KITAITI Makoto null+****@clear*****
Fri Feb 5 13:33:49 JST 2016


KITAITI Makoto	2016-02-05 13:33:49 +0900 (Fri, 05 Feb 2016)

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

  Merged 41a8b86: Merge pull request #4 from KitaitiMakoto/basic-auth

  Message:
    Extract common behavior

  Modified files:
    lib/groonga/client/protocol/http/synchronous.rb

  Modified: lib/groonga/client/protocol/http/synchronous.rb (+1 -2)
===================================================================
--- lib/groonga/client/protocol/http/synchronous.rb    2016-02-05 13:33:15 +0900 (0ae49c8)
+++ lib/groonga/client/protocol/http/synchronous.rb    2016-02-05 13:33:49 +0900 (4cee976)
@@ -109,11 +109,10 @@ module Groonga
               request.content_type = "application/json"
               request.content_length = raw_values.bytesize
               request.body_stream = StringIO.new(raw_values)
-              http.request(request)
             else
               request = Net::HTTP::Get.new(path, headers)
-              http.request(request)
             end
+              http.request(request)
           end
 
           def headers
-------------- next part --------------
HTML����������������������������...
Download 



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