@@ -3,11 +3,11 @@ use ngx::ffi::{
3
3
nginx_version, ngx_array_push, ngx_command_t, ngx_conf_t, ngx_http_core_module, ngx_http_handler_pt,
4
4
ngx_http_module_t, ngx_http_phases_NGX_HTTP_ACCESS_PHASE, ngx_http_request_t, ngx_int_t, ngx_module_t, ngx_str_t,
5
5
ngx_uint_t, NGX_CONF_TAKE1 , NGX_HTTP_MAIN_CONF , NGX_HTTP_SRV_CONF , NGX_HTTP_LOC_CONF , NGX_HTTP_MODULE ,
6
- NGX_RS_HTTP_LOC_CONF_OFFSET , NGX_RS_MODULE_SIGNATURE ,
6
+ NGX_HTTP_LOC_CONF_OFFSET , NGX_RS_MODULE_SIGNATURE ,
7
7
} ;
8
8
use ngx:: http:: MergeConfigError ;
9
9
use ngx:: { core, core:: Status , http, http:: HTTPModule } ;
10
- use ngx:: { http_request_handler, ngx_log_debug_http, ngx_modules, ngx_null_command , ngx_string} ;
10
+ use ngx:: { http_request_handler, ngx_log_debug_http, ngx_modules, ngx_string} ;
11
11
use robotstxt:: DefaultMatcher ;
12
12
use std:: fs;
13
13
use std:: os:: raw:: { c_char, c_void} ;
@@ -53,11 +53,11 @@ static mut ngx_http_robots_commands: [ngx_command_t; 2] = [
53
53
| NGX_HTTP_LOC_CONF
54
54
| NGX_CONF_TAKE1 ) as ngx_uint_t ,
55
55
set : Some ( ngx_http_robots_commands_set_robots_txt_path) ,
56
- conf : NGX_RS_HTTP_LOC_CONF_OFFSET ,
56
+ conf : NGX_HTTP_LOC_CONF_OFFSET ,
57
57
offset : 0 ,
58
58
post : std:: ptr:: null_mut ( ) ,
59
59
} ,
60
- ngx_null_command ! ( ) ,
60
+ ngx_command_t :: empty ( ) ,
61
61
] ;
62
62
63
63
#[ no_mangle]
0 commit comments