Skip to content

Commit 0c41d6c

Browse files
committed
Tests: adapted js_internal_redirect.t to njs changes.
req.variables.arg_dest can be undefined if dest argument is not present.
1 parent 91c2dca commit 0c41d6c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

js_internal_redirect.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ $t->write_file('test.js', <<EOF);
6868
}
6969
7070
function test_redirect(req) {
71-
if (req.variables.arg_dest.startsWith('named')) {
71+
if (req.variables.arg_dest == 'named') {
7272
req.internalRedirect('\@named');
7373
7474
} else {

0 commit comments

Comments
 (0)