comparison src/http/ngx_http_variables.c @ 3516:dd1570b6f237

ngx_str_set() and ngx_str_null()
author Igor Sysoev <igor@sysoev.ru>
date Fri, 14 May 2010 09:56:37 +0000
parents 0eb46e3c5c02
children 6802ba529ec4
comparison
equal deleted inserted replaced
3515:76d252724db5 3516:dd1570b6f237
1388 v->data = r->headers_out.location->value.data; 1388 v->data = r->headers_out.location->value.data;
1389 1389
1390 return NGX_OK; 1390 return NGX_OK;
1391 } 1391 }
1392 1392
1393 name.len = sizeof("sent_http_location") - 1; 1393 ngx_str_set(&name, "sent_http_location");
1394 name.data = (u_char *) "sent_http_location";
1395 1394
1396 return ngx_http_variable_unknown_header(v, &name, 1395 return ngx_http_variable_unknown_header(v, &name,
1397 &r->headers_out.headers.part, 1396 &r->headers_out.headers.part,
1398 sizeof("sent_http_") - 1); 1397 sizeof("sent_http_") - 1);
1399 } 1398 }