Kouhei Sutou
null+****@clear*****
Thu May 8 16:51:07 JST 2014
Kouhei Sutou 2014-05-08 16:51:07 +0900 (Thu, 08 May 2014) New Revision: 1643c82ba50adca537042adeba0ec8110e885288 https://github.com/groonga/groonga/commit/1643c82ba50adca537042adeba0ec8110e885288 Message: http: use "400 Bad Request" for syntax error Because syntax error is a client side error. Modified files: src/groonga.c Modified: src/groonga.c (+1 -0) =================================================================== --- src/groonga.c 2014-05-08 12:32:09 +0900 (ed88716) +++ src/groonga.c 2014-05-08 16:51:07 +0900 (4ce4da7) @@ -664,6 +664,7 @@ h_output(grn_ctx *ctx, int flags, void *arg) GRN_TEXT_SETS(ctx, &header, "HTTP/1.1 200 OK\r\n"); break; case GRN_INVALID_ARGUMENT : + case GRN_SYNTAX_ERROR : GRN_TEXT_SETS(ctx, &header, "HTTP/1.1 400 Bad Request\r\n"); break; case GRN_NO_SUCH_FILE_OR_DIRECTORY : -------------- next part -------------- HTML����������������������������...Download