Skip to content

Commit

Permalink
Update ngx_http_execute_module.c
Browse files Browse the repository at this point in the history
Duplicate removal
  • Loading branch information
limithit authored May 21, 2018
1 parent 38094a3 commit 86560f3
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion ngx_http_execute_module.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ typedef struct {
ngx_str_t ed;
} ngx_http_execute_loc_conf_t;

typedef struct {
char *command;
} ngx_http_command_conf_t;

static char *ngx_http_execute(ngx_conf_t *cf, ngx_command_t *cmd, void *conf);
static void *ngx_http_execute_create_loc_conf(ngx_conf_t *cf);
static char *ngx_http_execute_merge_loc_conf(ngx_conf_t *cf, void *parent,
Expand Down Expand Up @@ -110,7 +114,11 @@ static char *
ngx_http_execute(ngx_conf_t *cf, ngx_command_t *cmd, void *conf) {
ngx_http_core_loc_conf_t *clcf;
ngx_str_t *value;

ngx_http_command_conf_t *com = conf;

if (com->command) {
return "is duplicate";
}
value = cf->args->elts;
if (ngx_strcasecmp(value[1].data, (u_char *) "on") != 0) {
return NGX_CONF_OK;
Expand Down

0 comments on commit 86560f3

Please sign in to comment.