@@ -3,11 +3,11 @@ use ngx::ffi::{
33 nginx_version, ngx_array_push, ngx_command_t, ngx_conf_t, ngx_http_core_module, ngx_http_handler_pt,
44 ngx_http_module_t, ngx_http_phases_NGX_HTTP_ACCESS_PHASE, ngx_http_request_t, ngx_int_t, ngx_module_t, ngx_str_t,
55 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 ,
77} ;
88use ngx:: http:: MergeConfigError ;
99use 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} ;
1111use robotstxt:: DefaultMatcher ;
1212use std:: fs;
1313use std:: os:: raw:: { c_char, c_void} ;
@@ -53,11 +53,11 @@ static mut ngx_http_robots_commands: [ngx_command_t; 2] = [
5353 | NGX_HTTP_LOC_CONF
5454 | NGX_CONF_TAKE1 ) as ngx_uint_t ,
5555 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 ,
5757 offset : 0 ,
5858 post : std:: ptr:: null_mut ( ) ,
5959 } ,
60- ngx_null_command ! ( ) ,
60+ ngx_command_t :: empty ( ) ,
6161] ;
6262
6363#[ no_mangle]
0 commit comments