[Groonga-commit] droonga/droonga-client-ruby at c46c520 [master] Accept "path" parameter for a subscribe request

Back to archive index

YUKI Hiroshi null+****@clear*****
Mon Jan 20 12:31:16 JST 2014


YUKI Hiroshi	2014-01-20 12:31:16 +0900 (Mon, 20 Jan 2014)

  New Revision: c46c5207f65d6a779a7038f1766852a72ab6daff
  https://github.com/droonga/droonga-client-ruby/commit/c46c5207f65d6a779a7038f1766852a72ab6daff

  Message:
    Accept "path" parameter for a subscribe request

  Modified files:
    lib/droonga/client/connection/http.rb

  Modified: lib/droonga/client/connection/http.rb (+2 -1)
===================================================================
--- lib/droonga/client/connection/http.rb    2014-01-20 10:56:53 +0900 (1eee188)
+++ lib/droonga/client/connection/http.rb    2014-01-20 12:31:16 +0900 (1b37b57)
@@ -125,7 +125,8 @@ module Droonga
           http.open_timeout = open_timeout
           http.read_timeout = read_timeout
           http.start do
-            get = Net::HTTP::Get.new(build_path(message), build_headers(message))
+            path = message["path"] || build_path(message)
+            get = Net::HTTP::Get.new(path, build_headers(message))
             http.request(get) do |response|
               yield(response)
             end
-------------- next part --------------
HTML����������������������������...
Download 



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