[Groonga-commit] ranguba/groonga-client at 8732c66 [master] Add authentication option

Back to archive index

KITAITI Makoto null+****@clear*****
Fri Feb 5 13:37:54 JST 2016


KITAITI Makoto	2016-02-05 13:37:54 +0900 (Fri, 05 Feb 2016)

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

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

  Message:
    Add authentication option

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

  Modified: lib/groonga/client/protocol/http/synchronous.rb (+3 -0)
===================================================================
--- lib/groonga/client/protocol/http/synchronous.rb    2016-02-05 13:36:28 +0900 (06a14f3)
+++ lib/groonga/client/protocol/http/synchronous.rb    2016-02-05 13:37:54 +0900 (a1bbca8)
@@ -112,6 +112,9 @@ module Groonga
             else
               request = Net::HTTP::Get.new(path, headers)
             end
+            if do_authenticate?
+              request.basic_auth @options[:auth_user], @options[:auth_password]
+            end
             http.request(request)
           end
 
-------------- next part --------------
HTML����������������������������...
Download 



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