diff xml/ru/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/ru/docs/http/ngx_http_js_module.xml
+++ b/xml/ru/docs/http/ngx_http_js_module.xml
@@ -9,7 +9,7 @@
 <module name="Модуль ngx_http_js_module"
         link="/ru/docs/http/ngx_http_js_module.html"
         lang="ru"
-        rev="42">
+        rev="43">
 
 <section id="summary">
 
@@ -605,8 +605,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);
 }