Kouhei Sutou
null+****@clear*****
Tue Sep 27 19:27:32 JST 2016
Kouhei Sutou 2016-09-27 19:27:32 +0900 (Tue, 27 Sep 2016) New Revision: 7179181921576eeb26766a76dd1f1476e3f825bb https://github.com/groonga/fluent-plugin-groonga/commit/7179181921576eeb26766a76dd1f1476e3f825bb Message: Use "reply" Because it doesn't just "write". Modified files: lib/fluent/plugin/in_groonga.rb Modified: lib/fluent/plugin/in_groonga.rb (+3 -3) =================================================================== --- lib/fluent/plugin/in_groonga.rb 2016-09-27 19:27:06 +0900 (1937e35) +++ lib/fluent/plugin/in_groonga.rb 2016-09-27 19:27:32 +0900 (d7157f5) @@ -227,13 +227,13 @@ module Fluent "failed to parse HTTP request:", :error => "#{$!.class}: #{$!}") $log.error_backtrace - write_error_response("400 Bad Request") + reply_error_response("400 Bad Request") rescue $log.error("[input][groonga][error] " + "failed to handle HTTP request:", :error => "#{$!.class}: #{$!}") $log.error_backtrace - write_error_response("500 Internal Server Error") + reply_error_response("500 Internal Server Error") end end @@ -268,7 +268,7 @@ module Fluent end end - def write_error_response(status) + def reply_error_response(status) write("HTTP1.1 #{status}\r\n") write("Server: fluent-plugin-groonga\r\n") write("Connection: close\r\n") -------------- next part -------------- HTML����������������������������...Download