[Groonga-commit] droonga/droonga-client-ruby at bba267c [master] Detect host:port case correctly

Back to archive index

YUKI Hiroshi null+****@clear*****
Mon Jul 28 11:52:42 JST 2014


YUKI Hiroshi	2014-07-28 11:52:42 +0900 (Mon, 28 Jul 2014)

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

  Message:
    Detect host:port case correctly

  Modified files:
    bin/droonga-send

  Modified: bin/droonga-send (+1 -1)
===================================================================
--- bin/droonga-send    2014-07-28 11:50:15 +0900 (7b18719)
+++ bin/droonga-send    2014-07-28 11:52:42 +0900 (323694d)
@@ -41,7 +41,7 @@ def parse_server(server, options)
   port     = $3
   tag      = $4
 
-  if host =~ /\A[0-9]+\z/ and port.nil?
+  if protocol and host =~ /\A[0-9]+\z/ and port.nil?
     # "host:port" case can be detected as "protocol:host" wrongly.
     port     = host
     host     = protocol
-------------- next part --------------
HTML����������������������������...
Download 



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