Tests: added proxy_cookie_domain/path tests with "off" parameter.
diff --git a/proxy_cookie.t b/proxy_cookie.t index 7e541b1..d98952c 100644 --- a/proxy_cookie.t +++ b/proxy_cookie.t
@@ -51,6 +51,13 @@ 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 @@ EOF -$t->run()->plan(8); +$t->run()->plan(9); ############################################################################### @@ -100,6 +107,9 @@ 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'); ###############################################################################