Mercurial > hg > nginx
comparison src/http/modules/ngx_http_fastcgi_module.c @ 4947:4251e72b8bb4
Allow the complex value to be defined as an empty string.
This makes conversion from strings to complex values possible
without the loss of functionality.
author | Ruslan Ermilov <ru@nginx.com> |
---|---|
date | Thu, 06 Dec 2012 23:03:53 +0000 |
parents | 21d1e3bcb356 |
children | fd84344f1df7 10f5831cf56e |
comparison
equal
deleted
inserted
replaced
4946:2570296374b4 | 4947:4251e72b8bb4 |
---|---|
3012 ngx_str_t *value; | 3012 ngx_str_t *value; |
3013 ngx_http_compile_complex_value_t ccv; | 3013 ngx_http_compile_complex_value_t ccv; |
3014 | 3014 |
3015 value = cf->args->elts; | 3015 value = cf->args->elts; |
3016 | 3016 |
3017 if (flcf->cache_key.value.len) { | 3017 if (flcf->cache_key.value.data) { |
3018 return "is duplicate"; | 3018 return "is duplicate"; |
3019 } | 3019 } |
3020 | 3020 |
3021 ngx_memzero(&ccv, sizeof(ngx_http_compile_complex_value_t)); | 3021 ngx_memzero(&ccv, sizeof(ngx_http_compile_complex_value_t)); |
3022 | 3022 |