Mercurial > hg > nginx-site
diff xml/en/docs/http/ngx_http_js_module.xml @ 3011:55d49eb065ac
Fixed example in the js_periodic directive.
author | Yaroslav Zhuravlev <yar@nginx.com> |
---|---|
date | Thu, 14 Sep 2023 16:38:00 +0100 |
parents | 4470b2bff7b7 |
children | c0a4a4a55e45 |
line wrap: on
line diff
--- a/xml/en/docs/http/ngx_http_js_module.xml +++ b/xml/en/docs/http/ngx_http_js_module.xml @@ -9,7 +9,7 @@ <module name="Module ngx_http_js_module" link="/en/docs/http/ngx_http_js_module.html" lang="en" - rev="42"> + rev="43"> <section id="summary"> @@ -602,8 +602,8 @@ location @periodics { example.js: async function handler(s) { - let reply = async ngx.fetch('https://nginx.org/en/docs/njs/'); - let body = async reply.text(); + let reply = await ngx.fetch('https://nginx.org/en/docs/njs/'); + let body = await reply.text(); ngx.log(ngx.INFO, body); }