# HG changeset patch # User Sergey Kandaurov # Date 1595495859 -10800 # Node ID bff287fbf34751fe82392bfe930fdb7262ef0c50 # Parent b4014b3e8495a439732569fb0e6c0a0af622a213 Tests: added proxy_cookie_domain/path tests with "off" parameter. diff --git a/proxy_cookie.t b/proxy_cookie.t --- a/proxy_cookie.t +++ b/proxy_cookie.t @@ -51,6 +51,13 @@ http { proxy_cookie_path /$server_name/ /new/$server_name/; proxy_cookie_path ~^/regex/(.+)$ /$1; proxy_cookie_path ~*^/caseless/(.+)$ /$1; + + location /off/ { + proxy_pass http://127.0.0.1:8081; + + proxy_cookie_domain off; + proxy_cookie_path off; + } } } @@ -73,7 +80,7 @@ http { EOF -$t->run()->plan(8); +$t->run()->plan(9); ############################################################################### @@ -100,6 +107,9 @@ is(http_get_set_cookie('/?path=/CASEless is(http_get_set_cookie('/?domain=www.example.org&path=/path/test.html'), 'v=path=domain=; Domain=example.com; Path=/new/test.html', 'domain and path rewrite'); +is(http_get_set_cookie('/off/?domain=www.example.org&path=/path/test.html'), + 'v=path=domain=; Domain=www.example.org; Path=/path/test.html', + 'domain and path rewrite off'); ###############################################################################