[Groonga-commit] groonga/fluent-plugin-groonga at 69c82d1 [master] Make case insensitive

Back to archive index

Kouhei Sutou null+****@clear*****
Mon Oct 3 16:27:04 JST 2016


Kouhei Sutou	2016-10-03 16:27:04 +0900 (Mon, 03 Oct 2016)

  New Revision: 69c82d137ab2d24afde8b0b4bcd4641cedb4b099
  https://github.com/groonga/fluent-plugin-groonga/commit/69c82d137ab2d24afde8b0b4bcd4641cedb4b099

  Message:
    Make case insensitive

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

  Modified: lib/fluent/plugin/in_groonga.rb (+3 -3)
===================================================================
--- lib/fluent/plugin/in_groonga.rb    2016-10-03 16:26:44 +0900 (e3553e3)
+++ lib/fluent/plugin/in_groonga.rb    2016-10-03 16:27:04 +0900 (89f02b5)
@@ -384,7 +384,7 @@ module Fluent
           return if****@parse*****_code == 100
 
           case @content_type
-          when /\Aapplication\/json\z/
+          when /\Aapplication\/json\z/i
             begin
               response = JSON.parse(@body)
             rescue JSON::ParserError
@@ -394,9 +394,9 @@ module Fluent
                          :json => @body)
               response = nil
             end
-          when /\Aapplication\/x-msgpack\z/
+          when /\Aapplication\/x-msgpack\z/i
             response = MessagePack.unpack(@body)
-          when /\Atext\/x-groonga-command-list\z/
+          when /\Atext\/x-groonga-command-list\z/i
             response = @body
           else
             response = nil
-------------- next part --------------
HTML����������������������������...
Download 



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