This commit is contained in:
Igor Sysoev 2010-09-13 12:44:43 +00:00
parent 12f4da4695
commit 9a62648f7b
3 changed files with 4 additions and 4 deletions

View File

@ -37,14 +37,14 @@ static ngx_command_t ngx_http_secure_link_commands[] = {
{ ngx_string("secure_link"), { ngx_string("secure_link"),
NGX_HTTP_MAIN_CONF|NGX_HTTP_SRV_CONF|NGX_HTTP_LOC_CONF|NGX_CONF_TAKE1, NGX_HTTP_MAIN_CONF|NGX_HTTP_SRV_CONF|NGX_HTTP_LOC_CONF|NGX_CONF_TAKE1,
ngx_http_set_comlex_value_slot, ngx_http_set_complex_value_slot,
NGX_HTTP_LOC_CONF_OFFSET, NGX_HTTP_LOC_CONF_OFFSET,
offsetof(ngx_http_secure_link_conf_t, variable), offsetof(ngx_http_secure_link_conf_t, variable),
NULL }, NULL },
{ ngx_string("secure_link_md5"), { ngx_string("secure_link_md5"),
NGX_HTTP_MAIN_CONF|NGX_HTTP_SRV_CONF|NGX_HTTP_LOC_CONF|NGX_CONF_TAKE1, NGX_HTTP_MAIN_CONF|NGX_HTTP_SRV_CONF|NGX_HTTP_LOC_CONF|NGX_CONF_TAKE1,
ngx_http_set_comlex_value_slot, ngx_http_set_complex_value_slot,
NGX_HTTP_LOC_CONF_OFFSET, NGX_HTTP_LOC_CONF_OFFSET,
offsetof(ngx_http_secure_link_conf_t, md5), offsetof(ngx_http_secure_link_conf_t, md5),
NULL }, NULL },

View File

@ -212,7 +212,7 @@ ngx_http_compile_complex_value(ngx_http_compile_complex_value_t *ccv)
char * char *
ngx_http_set_comlex_value_slot(ngx_conf_t *cf, ngx_command_t *cmd, void *conf) ngx_http_set_complex_value_slot(ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
{ {
char *p = conf; char *p = conf;

View File

@ -207,7 +207,7 @@ void ngx_http_script_flush_complex_value(ngx_http_request_t *r,
ngx_int_t ngx_http_complex_value(ngx_http_request_t *r, ngx_int_t ngx_http_complex_value(ngx_http_request_t *r,
ngx_http_complex_value_t *val, ngx_str_t *value); ngx_http_complex_value_t *val, ngx_str_t *value);
ngx_int_t ngx_http_compile_complex_value(ngx_http_compile_complex_value_t *ccv); ngx_int_t ngx_http_compile_complex_value(ngx_http_compile_complex_value_t *ccv);
char * ngx_http_set_comlex_value_slot(ngx_conf_t *cf, ngx_command_t *cmd, char *ngx_http_set_complex_value_slot(ngx_conf_t *cf, ngx_command_t *cmd,
void *conf); void *conf);