Ticket #70: valid_unparsed_uri.patch

File valid_unparsed_uri.patch, 908 bytes (added by lanshun zhou, 15 years ago)

simple patch

  • src/http/ngx_http_core_module.c

    diff -ruN nginx-1.1.11/src/http/ngx_http_core_module.c nginx-1.1.11_zls/src/http/ngx_http_core_module.c
    old new  
    24812481
    24822482    r->uri = *uri;
    24832483
     2484    r->valid_unparsed_uri = 0;
     2485
    24842486    if (args) {
    24852487        r->args = *args;
    24862488
  • src/http/ngx_http_upstream.c

    diff -ruN nginx-1.1.11/src/http/ngx_http_upstream.c nginx-1.1.11_zls/src/http/ngx_http_upstream.c
    old new  
    18951895            r->method = NGX_HTTP_GET;
    18961896        }
    18971897
    1898         r->valid_unparsed_uri = 0;
    1899 
    19001898        ngx_http_internal_redirect(r, uri, &args);
    19011899        ngx_http_finalize_request(r, NGX_DONE);
    19021900        return NGX_DONE;