Kouhei Sutou
null+****@clear*****
Mon Jan 26 19:23:15 JST 2015
Kouhei Sutou 2015-01-26 19:23:15 +0900 (Mon, 26 Jan 2015) New Revision: 73daf3a5a165281eea3e4d80d62d1dcd8acf65a8 https://github.com/groonga/groonga/commit/73daf3a5a165281eea3e4d80d62d1dcd8acf65a8 Message: groonga-httpd: fix a bug that empty dump isn't returned Modified files: src/httpd/nginx-module/ngx_http_groonga_module.c Modified: src/httpd/nginx-module/ngx_http_groonga_module.c (+3 -3) =================================================================== --- src/httpd/nginx-module/ngx_http_groonga_module.c 2015-01-26 18:46:42 +0900 (6c9e217) +++ src/httpd/nginx-module/ngx_http_groonga_module.c 2015-01-26 19:23:15 +0900 (115de13) @@ -450,12 +450,12 @@ ngx_http_groonga_context_receive_handler_raw(grn_ctx *context, r->headers_out.status = NGX_HTTP_OK; if (is_last_chunk) { r->headers_out.content_length_n = chunk_size; + if (chunk_size == 0) { + r->header_only = 1; + } } else { r->headers_out.content_length_n = -1; } - if (chunk_size == 0) { - r->header_only = 1; - } data->raw.rc = ngx_http_send_header(r); data->raw.header_sent = GRN_TRUE; -------------- next part -------------- HTML����������������������������...Download