[Groonga-commit] groonga/fluent-plugin-groonga at 11e5d5f [master] Support "100-continue" case

Back to archive index

Masafumi Yokoyama null+****@clear*****
Mon Oct 3 12:50:22 JST 2016


Masafumi Yokoyama	2016-10-03 12:50:22 +0900 (Mon, 03 Oct 2016)

  New Revision: 11e5d5f858670ee68f5552c64d2e57a44dcbf894
  https://github.com/groonga/fluent-plugin-groonga/commit/11e5d5f858670ee68f5552c64d2e57a44dcbf894

  Message:
    Support "100-continue" case
    
    HTTP response shouldn't be finished when a HTTP client requests
    "100-continue". curl, PHP HTTP client and so on uses "100-continue"
    when they send a large POST data. The input groonga plugin should
    support "100-conitnue".

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

  Modified: lib/fluent/plugin/in_groonga.rb (+2 -0)
===================================================================
--- lib/fluent/plugin/in_groonga.rb    2016-09-28 14:50:43 +0900 (ffa78cf)
+++ lib/fluent/plugin/in_groonga.rb    2016-10-03 12:50:22 +0900 (f5be304)
@@ -372,6 +372,8 @@ module Fluent
         end
 
         def on_message_complete
+          return if****@parse*****_code == 100
+
           case @content_type
           when /\Aapplication\/json\z/
             response = JSON.parse(@body)
-------------- next part --------------
HTML����������������������������...
Download 



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