changeset 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 1ae01ea2eca8
children 89ab7fc9fea5
files xml/en/docs/dev/development_guide.xml
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/xml/en/docs/dev/development_guide.xml
+++ b/xml/en/docs/dev/development_guide.xml
@@ -4599,9 +4599,9 @@ static ngx_http_module_t  ngx_http_foo_m
 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;