The official NGINX Open Source repository.
Go to file
Maxim Dounin 0f00d3365f Fixed background update with "if".
Cloned subrequests should inherit r->content_handler.  This way they will
be able to use the same location configuration as the original request
if there are "if" directives in the configuration.

Without r->content_handler inherited, the following configuration tries
to access a static file in the update request:

    location / {
        set $true 1;
        if ($true) {
            # nothing
        }

        proxy_pass http://backend;
        proxy_cache one;
        proxy_cache_use_stale updating;
        proxy_cache_background_update on;
    }

See http://mailman.nginx.org/pipermail/nginx/2017-February/053019.html for
initial report.
2017-02-27 22:36:15 +03:00
auto Configure: removed execute bit from auto/unix. 2017-02-01 20:04:06 +03:00
conf Added the REQUEST_SCHEME parameter. 2015-06-05 22:23:26 +03:00
contrib Contrib: vim syntax, update core module directives. 2017-02-24 18:05:58 +08:00
docs Trailing space removed. 2017-02-16 18:37:22 +03:00
misc Updated OpenSSL used for win32 builds. 2017-01-27 19:06:35 +03:00
src Fixed background update with "if". 2017-02-27 22:36:15 +03:00
.hgtags release-1.11.10 tag 2017-02-14 18:36:04 +03:00