# HG changeset patch # User Roman Arutyunyan # Date 1692289889 -14400 # Node ID 537b98ec3c83f15a520db119d9dbd5f89bf13f69 # Parent 1ae01ea2eca8a3dfaebb7e74014653215a15ec90 Development guide: fixed example code. The code produced compiler errors. diff -r 1ae01ea2eca8 -r 537b98ec3c83 xml/en/docs/dev/development_guide.xml --- a/xml/en/docs/dev/development_guide.xml Tue Aug 15 20:12:08 2023 +0300 +++ b/xml/en/docs/dev/development_guide.xml Thu Aug 17 20:31:29 2023 +0400 @@ -4599,9 +4599,9 @@ static ngx_int_t ngx_http_foo_handler(ngx_http_request_t *r) { - ngx_str_t *ua; - - ua = r->headers_in->user_agent; + ngx_table_elt_t *ua; + + ua = r->headers_in.user_agent; if (ua == NULL) { return NGX_DECLINED;