Mercurial > hg > nginx-tests
diff js.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 | 0979f22e3a5b |
children | e55aa7021ea5 |
line wrap: on
line diff
--- a/js.t Wed Jul 20 17:47:22 2022 -0700 +++ b/js.t Tue Aug 02 20:35:05 2022 -0700 @@ -173,7 +173,7 @@ function request_body(r) { try { - var body = r.requestBody; + var body = r.requestText; r.return(200, body); } catch (e) { @@ -235,7 +235,7 @@ EOF -$t->try_run('no njs available')->plan(27); +$t->try_run('no njs available')->plan(26); ############################################################################### @@ -273,8 +273,6 @@ like(http_get('/type?path=rawVariables.host'), qr/200 OK.*type: buffer$/s, 'rawVariables type'); -like(http_post('/type?path=requestBody'), qr/200 OK.*type: string$/s, - 'requestBody type'); like(http_post('/type?path=requestText'), qr/200 OK.*type: string$/s, 'requestText type'); like(http_post('/type?path=requestBuffer'), qr/200 OK.*type: buffer$/s,