Mercurial > hg > nginx-tests
diff js_request_body.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 | 18ac4d9e5a2a |
children |
line wrap: on
line diff
--- 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, r.requestBody method. +# Tests for http njs module, r.requestText method. ############################################################################### @@ -59,7 +59,7 @@ EOF $t->write_file('test.js', <<EOF); function body(r) { try { - var body = r.requestBody; + var body = r.requestText; r.return(200, body); } catch (e) {