comparison js_subrequests.t @ 1781:386748f328b1

Tests: updated js properties deprecated since 0.5.0.
author Dmitry Volyntsev <xeioex@nginx.com>
date Tue, 02 Aug 2022 20:35:05 -0700
parents f89770df737a
children
comparison
equal deleted inserted replaced
1780:bd21a4a7c9f5 1781:386748f328b1
480 function sr_uri_except(r) { 480 function sr_uri_except(r) {
481 r.subrequest(Failed.toConvert, 'a=1', 'b'); 481 r.subrequest(Failed.toConvert, 'a=1', 'b');
482 } 482 }
483 483
484 function body_fwd_cb(r) { 484 function body_fwd_cb(r) {
485 r.parent.return(200, JSON.stringify(JSON.parse(r.responseBody))); 485 r.parent.return(200, JSON.stringify(JSON.parse(r.responseText)));
486 } 486 }
487 487
488 function js_sub(r) { 488 function js_sub(r) {
489 r.return(200, '["JS-SUB"]'); 489 r.return(200, '["JS-SUB"]');
490 } 490 }