[Groonga-commit] groonga/fluent-plugin-groonga at 76cee42 [master] Follow http_parser API change

Back to archive index

Kouhei Sutou null+****@clear*****
Fri Oct 10 13:30:50 JST 2014


Kouhei Sutou	2014-10-10 13:30:50 +0900 (Fri, 10 Oct 2014)

  New Revision: 76cee424eb885a1bae8c2af75d16c2a3fc104bca
  https://github.com/groonga/fluent-plugin-groonga/commit/76cee424eb885a1bae8c2af75d16c2a3fc104bca

  Message:
    Follow http_parser API change
    
    HTTP::Parser#query_string and HTTP::Parser �� request_url have been removed.

  Modified files:
    lib/fluent/plugin/in_groonga.rb

  Modified: lib/fluent/plugin/in_groonga.rb (+5 -3)
===================================================================
--- lib/fluent/plugin/in_groonga.rb    2014-10-10 13:10:13 +0900 (347f4fc)
+++ lib/fluent/plugin/in_groonga.rb    2014-10-10 13:30:50 +0900 (8ff2be4)
@@ -1,6 +1,6 @@
 # -*- coding: utf-8 -*-
 #
-# Copyright (C) 2012-2013  Kouhei Sutou <kou �� clear-code.com>
+# Copyright (C) 2012-2014  Kouhei Sutou <kou �� clear-code.com>
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
@@ -16,6 +16,7 @@
 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 
 require "English"
+require "uri"
 require "webrick/httputils"
 
 require "http_parser"
@@ -188,8 +189,9 @@ module Fluent
         end
 
         def on_message_complete
-          params = WEBrick::HTTPUtils.parse_query(@parser.query_string)
-          path_info =****@parse*****_path
+          uri = URI.parse(@parser.request_url)
+          params = WEBrick::HTTPUtils.parse_query(uri.query)
+          path_info = uri.path
           case path_info
           when /\A\/d\//
             command = $POSTMATCH
-------------- next part --------------
HTML����������������������������...
Download 



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