|
9 | 9 | <article name="Changes"
|
10 | 10 | link="/en/docs/njs/changes.html"
|
11 | 11 | lang="en"
|
12 |
| - rev="71" |
| 12 | + rev="72" |
13 | 13 | toc="no">
|
14 | 14 |
|
15 | 15 | <section id="njs0.8.6" name="Changes with njs 0.8.6">
|
@@ -160,23 +160,65 @@ nginx modules:
|
160 | 160 | <listitem>
|
161 | 161 | <para>
|
162 | 162 | Change:
|
| 163 | +bytes invalid in UTF-8 encoding are converted into the replacement character in: |
| 164 | +<list type="bullet"> |
| 165 | + |
| 166 | +<listitem> |
| 167 | +<para> |
163 | 168 | <link doc="reference.xml" id="r_variables"><literal>r.variables.var</literal></link>,
|
164 | 169 | <link doc="reference.xml" id="r_request_text"><literal>r.requestText</literal></link>,
|
165 | 170 | <link doc="reference.xml" id="r_response_text"><literal>r.responseText</literal></link>,
|
166 | 171 | <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 |
168 | 178 | <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> |
173 | 198 | <link doc="reference.xml" id="r_raw_variables"><literal>r.rawVariables.var</literal></link>,
|
174 | 199 | <link doc="reference.xml" id="r_request_buffer"><literal>r.requestBuffer</literal></link>,
|
175 | 200 | <link doc="reference.xml" id="r_response_buffer"><literal>r.responseBuffer</literal></link>,
|
176 | 201 | <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 |
178 | 208 | 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 | + |
180 | 222 | </para>
|
181 | 223 | </listitem>
|
182 | 224 |
|
|
0 commit comments