Mercurial > hg > nginx-tests
changeset 1591:a7902e5adeab
Tests: style.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Fri, 18 Sep 2020 13:36:41 +0100 |
parents | e682d5ad3861 |
children | efd082b4aa9c |
files | js_internal_redirect.t js_request_body.t |
diffstat | 2 files changed, 7 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/js_internal_redirect.t Mon Sep 14 22:27:59 2020 +0100 +++ b/js_internal_redirect.t Fri Sep 18 13:36:41 2020 +0100 @@ -67,16 +67,16 @@ r.return(200, njs.version); } - function test_redirect(req) { - if (req.variables.arg_dest == 'named') { - req.internalRedirect('\@named'); + function test_redirect(r) { + if (r.variables.arg_dest == 'named') { + r.internalRedirect('\@named'); } else { - if (req.variables.arg_a) { - req.internalRedirect('/redirect?b=' + req.variables.arg_a); + if (r.variables.arg_a) { + r.internalRedirect('/redirect?b=' + r.variables.arg_a); } else { - req.internalRedirect('/redirect'); + r.internalRedirect('/redirect'); } } }
--- a/js_request_body.t Mon Sep 14 22:27:59 2020 +0100 +++ b/js_request_body.t Fri Sep 18 13:36:41 2020 +0100 @@ -3,7 +3,7 @@ # (C) Dmitry Volyntsev # (C) Nginx, Inc. -# Tests for http njs module, req.requestBody method. +# Tests for http njs module, r.requestBody method. ###############################################################################