changeset 2649:7517de030c0a

Corrected njs example in ngx_stream_js_module module.
author Yaroslav Zhuravlev <yar@nginx.com>
date Wed, 03 Feb 2021 15:45:41 +0000
parents 78161967514f
children 2ab5aa4d5b04
files xml/en/docs/stream/ngx_stream_js_module.xml xml/ru/docs/stream/ngx_stream_js_module.xml
diffstat 2 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/xml/en/docs/stream/ngx_stream_js_module.xml
+++ b/xml/en/docs/stream/ngx_stream_js_module.xml
@@ -9,7 +9,7 @@
 <module name="Module ngx_stream_js_module"
         link="/en/docs/stream/ngx_stream_js_module.html"
         lang="en"
-        rev="22">
+        rev="23">
 
 <section id="summary">
 
@@ -113,7 +113,7 @@ function header_inject(s) {
 
 function access(s) {
     if (s.remoteAddress.match('^192.*')) {
-        s.abort();
+        s.deny();
         return;
     }
 
--- a/xml/ru/docs/stream/ngx_stream_js_module.xml
+++ b/xml/ru/docs/stream/ngx_stream_js_module.xml
@@ -9,7 +9,7 @@
 <module name="Модуль ngx_stream_js_module"
         link="/ru/docs/stream/ngx_stream_js_module.html"
         lang="ru"
-        rev="22">
+        rev="23">
 
 <section id="summary">
 
@@ -113,7 +113,7 @@ function header_inject(s) {
 
 function access(s) {
     if (s.remoteAddress.match('^192.*')) {
-        s.abort();
+        s.deny();
         return;
     }