Navigation Menu

Skip to content

Commit

Permalink
httpd: fix too much response on quit/shutdown error
Browse files Browse the repository at this point in the history
GitHub: fix ranguba/groonga-client#12

Reported by Kenji Okimoto. Thanks!!!
  • Loading branch information
kou committed Apr 13, 2017
1 parent f706018 commit a9f2dee
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/httpd/nginx-module/ngx_http_groonga_module.c
Expand Up @@ -528,7 +528,8 @@ ngx_http_groonga_context_receive_handler_typed(grn_ctx *context,
context->stat |= GRN_CTX_QUIT;
} else {
context->rc = GRN_OPERATION_NOT_PERMITTED;
GRN_TEXT_PUTS(context, &(data->typed.body), "false");
result = "false";
result_size = strlen(result);
context->stat &= ~GRN_CTX_QUIT;
}
}
Expand Down

0 comments on commit a9f2dee

Please sign in to comment.