diff --git a/src/ngx_http_lua_kong_module.c b/src/ngx_http_lua_kong_module.c index df92cfb6..44eee728 100644 --- a/src/ngx_http_lua_kong_module.c +++ b/src/ngx_http_lua_kong_module.c @@ -211,7 +211,7 @@ ngx_http_lua_kong_get_next_upstream_mask(ngx_http_request_t *r, return upstream_next; } - if(ctx->next_upstream ~= 0) { + if(ctx->next_upstream != 0) { return ctx->next_upstream; } return upstream_next;