comparison xml/en/docs/dev/development_guide.xml @ 2994:537b98ec3c83

Development guide: fixed example code. The code produced compiler errors.
author Roman Arutyunyan <arut@nginx.com>
date Thu, 17 Aug 2023 20:31:29 +0400
parents b7ff3d1915a1
children 89ab7fc9fea5
comparison
equal deleted inserted replaced
2993:1ae01ea2eca8 2994:537b98ec3c83
4597 4597
4598 4598
4599 static ngx_int_t 4599 static ngx_int_t
4600 ngx_http_foo_handler(ngx_http_request_t *r) 4600 ngx_http_foo_handler(ngx_http_request_t *r)
4601 { 4601 {
4602 ngx_str_t *ua; 4602 ngx_table_elt_t *ua;
4603 4603
4604 ua = r->headers_in->user_agent; 4604 ua = r->headers_in.user_agent;
4605 4605
4606 if (ua == NULL) { 4606 if (ua == NULL) {
4607 return NGX_DECLINED; 4607 return NGX_DECLINED;
4608 } 4608 }
4609 4609