comparison src/http/ngx_http_request.h @ 7427:81d49f85afed

Copy regex unnamed captures to cloned subrequests. Previously, unnamed regex captures matched in the parent request, were not available in a cloned subrequest. Now 3 fields related to unnamed captures are copied to a cloned subrequest: r->ncaptures, r->captures and r->captures_data. Since r->captures cannot be changed by either request after creating a clone, a new flag r->realloc_captures is introduced to force reallocation of r->captures. The issue was reported as a proxy_cache_background_update misbehavior in http://mailman.nginx.org/pipermail/nginx/2018-December/057251.html.
author Roman Arutyunyan <arut@nginx.com>
date Tue, 11 Dec 2018 13:09:00 +0300
parents 89430899c72a
children c19ca381b2e6
comparison
equal deleted inserted replaced
7426:4722b4b8aa93 7427:81d49f85afed
495 495
496 #if (NGX_HTTP_GZIP) 496 #if (NGX_HTTP_GZIP)
497 unsigned gzip_tested:1; 497 unsigned gzip_tested:1;
498 unsigned gzip_ok:1; 498 unsigned gzip_ok:1;
499 unsigned gzip_vary:1; 499 unsigned gzip_vary:1;
500 #endif
501
502 #if (NGX_PCRE)
503 unsigned realloc_captures:1;
500 #endif 504 #endif
501 505
502 unsigned proxy:1; 506 unsigned proxy:1;
503 unsigned bypass_cache:1; 507 unsigned bypass_cache:1;
504 unsigned no_cache:1; 508 unsigned no_cache:1;