Kouhei Sutou
null+****@clear*****
Thu Jul 17 17:22:47 JST 2014
Kouhei Sutou 2014-07-17 17:22:47 +0900 (Thu, 17 Jul 2014) New Revision: 57622698ad0bf284e1c3108a5f4b54e08acb3c59 https://github.com/groonga/groonga/commit/57622698ad0bf284e1c3108a5f4b54e08acb3c59 Message: httpd: set header_only flag when body is empty Modified files: src/httpd/nginx-module/ngx_http_groonga_module.c Modified: src/httpd/nginx-module/ngx_http_groonga_module.c (+3 -0) =================================================================== --- src/httpd/nginx-module/ngx_http_groonga_module.c 2014-07-16 22:01:24 +0900 (cf7cf79) +++ src/httpd/nginx-module/ngx_http_groonga_module.c 2014-07-17 17:22:47 +0900 (26be6be) @@ -781,6 +781,9 @@ ngx_http_groonga_handler_send_response(ngx_http_request_t *r, r->headers_out.content_length_n = GRN_TEXT_LEN(&(data->head)) + GRN_TEXT_LEN(&(data->body)) + GRN_TEXT_LEN(&(data->foot)); + if (r->headers_out.content_length_n == 0) { + r->header_only = 1; + } /* send the headers of your response */ rc = ngx_http_send_header(r); -------------- next part -------------- HTML����������������������������...Download