@@ -158,7 +158,7 @@ ngx_http_array_split(ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
158
158
/* cf->args->nelts >= 3 + 1 */
159
159
160
160
if (value [3 ].len >= sizeof ("to=" ) - 1
161
- && ngx_str3cmp (value [3 ].data , 't' , 'o' , '=' ))
161
+ && ngx_str3cmp (value [3 ].data , 't' , 'o' , '=' ))
162
162
{
163
163
dd ("array_split $sep $str to=$array" );
164
164
data -> nargs = filter .size = 2 ;
@@ -186,10 +186,10 @@ ngx_http_array_split(ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
186
186
/* array_split $sep $str $max to=$array */
187
187
188
188
if (value [4 ].len < sizeof ("to=" ) - 1
189
- || ! (ngx_str3cmp (value [4 ].data , 't' , 'o' , '=' )))
189
+ || ! (ngx_str3cmp (value [4 ].data , 't' , 'o' , '=' )))
190
190
{
191
191
ngx_conf_log_error (NGX_LOG_ERR , cf , 0 ,
192
- "%V: expecting the \"to\" option at the "
192
+ "%V: expecting the \"to\" option at the "
193
193
"4th argument: \"%V\"" ,
194
194
& cmd -> name , & value [4 ]);
195
195
@@ -215,9 +215,8 @@ ngx_http_array_split(ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
215
215
216
216
unexpected_arg :
217
217
218
- ngx_conf_log_error (NGX_LOG_EMERG , cf , 0 ,
219
- "%V: unexpected argument \"%V\"" ,
220
- & cmd -> name , bad_arg );
218
+ ngx_conf_log_error (NGX_LOG_EMERG , cf , 0 , "%V: unexpected argument \"%V\"" ,
219
+ & cmd -> name , bad_arg );
221
220
222
221
return NGX_CONF_ERROR ;
223
222
}
@@ -280,12 +279,12 @@ ngx_http_array_map(ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
280
279
/* cf->args->nelts == 3 + 1 */
281
280
282
281
if (value [3 ].len < sizeof ("to=" ) - 1
283
- || ! (ngx_str3cmp (value [3 ].data , 't' , 'o' , '=' )))
282
+ || ! (ngx_str3cmp (value [3 ].data , 't' , 'o' , '=' )))
284
283
{
285
284
ngx_conf_log_error (NGX_LOG_EMERG , cf , 0 ,
286
- "%V: expecting the \"to\" option at "
287
- "the 3rd argument: \"%V\"" ,
288
- & cmd -> name , & value [3 ]);
285
+ "%V: expecting the \"to\" option at "
286
+ "the 3rd argument: \"%V\"" ,
287
+ & cmd -> name , & value [3 ]);
289
288
290
289
return NGX_CONF_ERROR ;
291
290
}
@@ -335,7 +334,7 @@ ngx_http_array_map_op(ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
335
334
/* cf->args->nelts == 3 + 1 */
336
335
337
336
if (value [3 ].len >= sizeof ("to=" ) - 1
338
- && ngx_str3cmp (value [3 ].data , 't' , 'o' , '=' ))
337
+ && ngx_str3cmp (value [3 ].data , 't' , 'o' , '=' ))
339
338
{
340
339
/* array_join $sep $str to=$array */
341
340
filter .size = 2 ;
@@ -349,16 +348,16 @@ ngx_http_array_map_op(ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
349
348
350
349
} else {
351
350
return ndk_set_var_multi_value_core (cf , & target , & value [1 ],
352
- & filter );
351
+ & filter );
353
352
}
354
353
355
354
} else {
356
355
bad_arg = & value [3 ];
357
356
}
358
357
359
358
ngx_conf_log_error (NGX_LOG_EMERG , cf , 0 ,
360
- "%V: unexpected argument \"%V\"" ,
361
- & cmd -> name , bad_arg );
359
+ "%V: unexpected argument \"%V\"" ,
360
+ & cmd -> name , bad_arg );
362
361
363
362
return NGX_CONF_ERROR ;
364
363
}
@@ -391,7 +390,7 @@ ngx_http_array_join(ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
391
390
/* cf->args->nelts == 3 + 1 */
392
391
393
392
if (value [3 ].len >= sizeof ("to=" ) - 1
394
- && ngx_str3cmp (value [3 ].data , 't' , 'o' , '=' ))
393
+ && ngx_str3cmp (value [3 ].data , 't' , 'o' , '=' ))
395
394
{
396
395
/* array_join $sep $str to=$array */
397
396
filter .size = 2 ;
@@ -403,16 +402,16 @@ ngx_http_array_join(ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
403
402
bad_arg = & value [4 ];
404
403
} else {
405
404
return ndk_set_var_multi_value_core (cf , & target , & value [1 ],
406
- & filter );
405
+ & filter );
407
406
}
408
407
409
408
} else {
410
409
bad_arg = & value [3 ];
411
410
}
412
411
413
412
ngx_conf_log_error (NGX_LOG_EMERG , cf , 0 ,
414
- "%V: unexpected argument \"%V\"" ,
415
- & cmd -> name , bad_arg );
413
+ "%V: unexpected argument \"%V\"" ,
414
+ & cmd -> name , bad_arg );
416
415
417
416
return NGX_CONF_ERROR ;
418
417
}
0 commit comments