Ticket #2033: set_keepalive_status_moved.patch

File set_keepalive_status_moved.patch, 711 bytes (added by giovani.rinaldi.azion.com@…, 6 years ago)

Suggested patch

  • src/http/modules/ngx_http_proxy_module.c

    diff --git a/src/http/modules/ngx_http_proxy_module.c b/src/http/modules/ngx_http_proxy_module.c
    index 3aafb99..44974f3 100644
    a b ngx_http_proxy_process_header(ngx_http_request_t *r)  
    19131913
    19141914            if (u->headers_in.status_n == NGX_HTTP_NO_CONTENT
    19151915                || u->headers_in.status_n == NGX_HTTP_NOT_MODIFIED
     1916                || u->headers_in.status_n == NGX_HTTP_MOVED_TEMPORARILY
     1917                || u->headers_in.status_n == NGX_HTTP_MOVED_PERMANENTLY
    19161918                || ctx->head
    19171919                || (!u->headers_in.chunked
    19181920                    && u->headers_in.content_length_n == 0))