commit | 0c41d6c847fa9ecfa13fdfeb1490199ef020f5c2 | [log] [tgz] |
---|---|---|
author | Dmitry Volyntsev <xeioex@nginx.com> | Tue Feb 26 20:45:09 2019 +0300 |
committer | Dmitry Volyntsev <xeioex@nginx.com> | Tue Feb 26 20:45:09 2019 +0300 |
tree | d5476eb4d60455e89a8a4481485b21225079bb5d | |
parent | 91c2dcafa1a076b7c8b7aa53dd1975539a63c937 [diff] |
Tests: adapted js_internal_redirect.t to njs changes. req.variables.arg_dest can be undefined if dest argument is not present.
diff --git a/js_internal_redirect.t b/js_internal_redirect.t index 16633bd..a5c5bd6 100644 --- a/js_internal_redirect.t +++ b/js_internal_redirect.t
@@ -68,7 +68,7 @@ } function test_redirect(req) { - if (req.variables.arg_dest.startsWith('named')) { + if (req.variables.arg_dest == 'named') { req.internalRedirect('\@named'); } else {