Changeset 7bf8e1 for server/src/http/ngx_http_variables.c
- Timestamp:
- 02/19/08 15:44:50 (4 years ago)
- Branches:
- master-v0.7, master-v0.6, memcached_hash, upstream_count_limit
- Children:
- 11531c
- Parents:
- a64318
- git-author:
- Tomash Brechko <tomash.brechko@…> (02/19/08 15:44:50)
- git-committer:
- Tomash Brechko <tomash.brechko@…> (02/19/08 15:44:50)
- File:
-
- 1 edited
-
server/src/http/ngx_http_variables.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
server/src/http/ngx_http_variables.c
r0019fc r7bf8e1 1313 1313 1314 1314 1315 static ngx_int_t 1316 ngx_http_optional_variable(ngx_http_request_t *r, 1317 ngx_http_variable_value_t *v, uintptr_t data) 1318 { 1319 *v = ngx_http_variable_null_value; 1320 return NGX_OK; 1321 } 1322 1323 1315 1324 ngx_int_t 1316 1325 ngx_http_variables_init_vars(ngx_conf_t *cf) … … 1374 1383 } 1375 1384 1385 if (ngx_strncmp(v[i].name.data, "memcached_namespace", 19) == 0) { 1386 v[i].get_handler = ngx_http_optional_variable; 1387 1388 continue; 1389 } 1390 1376 1391 ngx_log_error(NGX_LOG_EMERG, cf->log, 0, 1377 1392 "unknown \"%V\" variable", &v[i].name);
Note: See TracChangeset
for help on using the changeset viewer.
