# HG changeset patch # User Yaroslav Zhuravlev # Date 1611601989 0 # Node ID 4849fa0fd4b42d6fff0513b00e0926cfe218dd52 # Parent c60bcc0de4356793af6f4db9460d2e87f5cbfd36 Removed URL Decoding/Encoding examples from njs. diff -r c60bcc0de435 -r 4849fa0fd4b4 xml/en/docs/njs/examples.xml --- a/xml/en/docs/njs/examples.xml Wed Jan 20 09:34:32 2021 +0000 +++ b/xml/en/docs/njs/examples.xml Mon Jan 25 19:13:09 2021 +0000 @@ -9,7 +9,7 @@
+ rev="18">
@@ -426,60 +426,6 @@
-
- - -nginx.conf: - -js_import http.js; - -js_set $decoded_foo http.decoded_foo; - - - - -http.js: - -function decoded_foo(r) { - return decodeURIComponent(r.args.foo); -} - -export default {decoded_foo}; - - - -
- - -
- - -nginx.conf: - -js_import http.js; - -js_set $encoded_foo http.encoded_foo; -... - -location / { - proxy_pass http://example.com?foo=$encoded_foo; -} - - - - -http.js: - -function encoded_foo(r) { - return encodeURIComponent('foo & bar?'); -} - -export default {encoded_foo}; - - - -
-
diff -r c60bcc0de435 -r 4849fa0fd4b4 xml/ru/docs/njs/examples.xml --- a/xml/ru/docs/njs/examples.xml Wed Jan 20 09:34:32 2021 +0000 +++ b/xml/ru/docs/njs/examples.xml Mon Jan 25 19:13:09 2021 +0000 @@ -9,7 +9,7 @@
+ rev="18">
@@ -20,6 +20,7 @@
+
@@ -375,6 +376,7 @@
+
@@ -424,61 +426,6 @@
- -
- - -nginx.conf: - -js_import http.js; - -js_set $decoded_foo http.decoded_foo; - - - - -http.js: - -function decoded_foo(r) { - return decodeURIComponent(r.args.foo); -} - -export default {decoded_foo}; - - - -
- - -
- - -nginx.conf: - -js_import http.js; - -js_set $encoded_foo http.encoded_foo; -... - -location / { - proxy_pass http://example.com?foo=$encoded_foo; -} - - - - -http.js: - -function encoded_foo(r) { - return encodeURIComponent('foo & bar?'); -} - -export default {encoded_foo}; - - - -
-