Changes between Initial Version and Version 1 of Ticket #2197, comment 1


Ignore:
Timestamp:
06/01/21 05:26:38 (3 years ago)
Author:
RekGRpth@…

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #2197, comment 1

    initial v1  
    33{{{
    44diff --git a/src/http/modules/ngx_http_upstream_keepalive_module.c b/src/http/modules/ngx_http_upstream_keepalive_module.c
    5 index 3081919c..6264a3a9 100644
     5index 3081919c..16056203 100644
    66--- a/src/http/modules/ngx_http_upstream_keepalive_module.c
    77+++ b/src/http/modules/ngx_http_upstream_keepalive_module.c
     
    1111 {
    1212+    ngx_str_t *elts = cf->args->elts;
    13 +    if (elts[0].len == sizeof("upstream") - 1 && ngx_strncasecmp(elts[0].data, (u_char *)"upstream", sizeof("upstream") - 1)) return NULL;
     13+    if (elts[0].len != sizeof("upstream") - 1 || ngx_strncasecmp(elts[0].data, (u_char *)"upstream", sizeof("upstream") - 1)) return NULL;
    1414     ngx_http_upstream_keepalive_srv_conf_t  *conf;
    1515 
    1616     conf = ngx_pcalloc(cf->pool,
    17 
    1817}}}