Tests: style.
diff --git a/js_internal_redirect.t b/js_internal_redirect.t
index 5b428f8..c0785a4 100644
--- a/js_internal_redirect.t
+++ b/js_internal_redirect.t
@@ -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');
}
}
}
diff --git a/js_request_body.t b/js_request_body.t
index c537eef..529991f 100644
--- a/js_request_body.t
+++ b/js_request_body.t
@@ -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.
###############################################################################