Navigation Menu

Skip to content

Commit

Permalink
groonga-httpd: fix a bug that empty dump isn't returned
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Jan 26, 2015
1 parent 8e82c9f commit 73daf3a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/httpd/nginx-module/ngx_http_groonga_module.c
Expand Up @@ -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;

Expand Down

0 comments on commit 73daf3a

Please sign in to comment.