Skip to content

Commit 476a1d6

Browse files
xeioexy82
authored andcommitted
Fixed changes for njs 0.8.5.
1 parent fcab190 commit 476a1d6

File tree

1 file changed

+50
-8
lines changed

1 file changed

+50
-8
lines changed

xml/en/docs/njs/changes.xml

Lines changed: 50 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<article name="Changes"
1010
link="/en/docs/njs/changes.html"
1111
lang="en"
12-
rev="71"
12+
rev="72"
1313
toc="no">
1414

1515
<section id="njs0.8.6" name="Changes with njs 0.8.6">
@@ -160,23 +160,65 @@ nginx modules:
160160
<listitem>
161161
<para>
162162
Change:
163+
bytes invalid in UTF-8 encoding are converted into the replacement character in:
164+
<list type="bullet">
165+
166+
<listitem>
167+
<para>
163168
<link doc="reference.xml" id="r_variables"><literal>r.variables.var</literal></link>,
164169
<link doc="reference.xml" id="r_request_text"><literal>r.requestText</literal></link>,
165170
<link doc="reference.xml" id="r_response_text"><literal>r.responseText</literal></link>,
166171
<link doc="reference.xml" id="s_variables"><literal>s.variables.var</literal></link>,
167-
and the
172+
</para>
173+
</listitem>
174+
175+
<listitem>
176+
<para>
177+
the
168178
<literal>data</literal> argument of the
169-
<link doc="reference.xml" id="njs_on"><literal>s.on()</literal></link> callback
170-
with <literal>upload</literal> or <literal>download</literal> event types
171-
will now convert bytes invalid in UTF-8 encoding into the replacement character.
172-
When working with binary data, use
179+
<link doc="reference.xml" id="s_on"><literal>s.on()</literal></link> callback
180+
with <literal>upload</literal> or <literal>download</literal> event types,
181+
</para>
182+
</listitem>
183+
184+
<listitem>
185+
<para>
186+
the <literal>data</literal> argument of the
187+
<link doc="../http/ngx_http_js_module.xml" id="js_body_filter"><literal>js_body_filter</literal></link>
188+
directive.
189+
</para>
190+
</listitem>
191+
192+
</list>
193+
When working with binary data, use:
194+
<list type="bullet">
195+
196+
<listitem>
197+
<para>
173198
<link doc="reference.xml" id="r_raw_variables"><literal>r.rawVariables.var</literal></link>,
174199
<link doc="reference.xml" id="r_request_buffer"><literal>r.requestBuffer</literal></link>,
175200
<link doc="reference.xml" id="r_response_buffer"><literal>r.responseBuffer</literal></link>,
176201
<link doc="reference.xml" id="s_raw_variables"><literal>s.rawVariables.var</literal></link>,
177-
and the <literal>upstream</literal> or <literal>downstream</literal> event type
202+
</para>
203+
</listitem>
204+
205+
<listitem>
206+
<para>
207+
the <literal>upstream</literal> or <literal>downstream</literal> event type
178208
for
179-
<link doc="reference.xml" id="njs_on"><literal>s.on()</literal></link> instead.
209+
<link doc="reference.xml" id="s_on"><literal>s.on()</literal></link>,
210+
</para>
211+
</listitem>
212+
213+
<listitem>
214+
<para>
215+
<literal>buffer_type</literal>=<value>buffer</value> for
216+
<link doc="../http/ngx_http_js_module.xml" id="js_body_filter"><literal>js_body_filter</literal></link>.
217+
</para>
218+
</listitem>
219+
220+
</list>
221+
180222
</para>
181223
</listitem>
182224

0 commit comments

Comments
 (0)