diff options
| author | Roman Arutyunyan <arut@nginx.com> | 2026-03-24 15:12:05 +0400 |
|---|---|---|
| committer | Roman Arutyunyan <arutyunyan.roman@gmail.com> | 2026-03-24 15:38:16 +0400 |
| commit | d787755d50c96b8f0fc1c5c2df62e8ea3bd9031f (patch) | |
| tree | 9940e018512d777dd0aa2e1d1f163e4e0f4747f4 /src/http | |
| parent | 6bb27a63129968da17b21589b73aa4f47b8445ec (diff) | |
| download | nginx-d787755d50c96b8f0fc1c5c2df62e8ea3bd9031f.tar.gz nginx-d787755d50c96b8f0fc1c5c2df62e8ea3bd9031f.tar.bz2 | |
Upstream keepalive: fixed parameter parsing.
Diffstat (limited to 'src/http')
| -rw-r--r-- | src/http/modules/ngx_http_upstream_keepalive_module.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/http/modules/ngx_http_upstream_keepalive_module.c b/src/http/modules/ngx_http_upstream_keepalive_module.c index 121023e30..c605e98ad 100644 --- a/src/http/modules/ngx_http_upstream_keepalive_module.c +++ b/src/http/modules/ngx_http_upstream_keepalive_module.c @@ -607,7 +607,7 @@ ngx_http_upstream_keepalive(ngx_conf_t *cf, ngx_command_t *cmd, void *conf) kcf->max_cached = n; if (cf->args->nelts == 3) { - if (ngx_strncmp(value[2].data, "local", 5) == 0) { + if (ngx_strcmp(value[2].data, "local") == 0) { kcf->local = 1; } else { |
