Build error with 1.23.0

Issue #50 new
Kent Yeh created an issue

ngx_http_sticky_module.c:218:54: error: 'ngx_http_headers_in_t' has no member named 'cookies'
if (ngx_http_parse_multi_header_lines(&r->headers_in.cookies, &iphp->sticky_conf->cookie_name, &route) != NGX_DECLINED) {
^
ngx_http_sticky_module.c:218:2: error: passing argument 2 of 'ngx_http_parse_multi_header_lines' from incompatible pointer type [-Werror]
if (ngx_http_parse_multi_header_lines(&r->headers_in.cookies, &iphp->sticky_conf->cookie_name, &route) != NGX_DECLINED) {
^
In file included from ngx_http_sticky_module.c:9:0:
src/http/ngx_http.h:106:18: note: expected 'struct ngx_table_elt_t *' but argument is of type 'struct ngx_str_t *'
ngx_table_elt_t *ngx_http_parse_multi_header_lines(ngx_http_request_t *r,
^
ngx_http_sticky_module.c:218:2: error: too few arguments to function 'ngx_http_parse_multi_header_lines'
if (ngx_http_parse_multi_header_lines(&r->headers_in.cookies, &iphp->sticky_conf->cookie_name, &route) != NGX_DECLINED) {
^
In file included from ngx_http_sticky_module.c:9:0:
src/http/ngx_http.h:106:18: note: declared here
ngx_table_elt_t *ngx_http_parse_multi_header_lines(ngx_http_request_t *r,

Comments (5)

  1. cnjimbo

    <div>谢谢来信。请原谅我回复地不及时。如需我立即回复,请微信我或者打电话给我。谢谢。</div><div>Hello, thank you for your letter. Please pardon me a delay in response. Please touch me on WeChat or call me if need me response, Thank you.</div>

  2. cnjimbo

    <div>谢谢来信。请原谅我回复地不及时。如需我立即回复,请微信我或者打电话给我。谢谢。</div><div>Hello, thank you for your letter. Please pardon me a delay in response. Please touch me on WeChat or call me if need me response, Thank you.</div>

  3. cnjimbo

    <div>谢谢来信。请原谅我回复地不及时。如需我立即回复,请微信我或者打电话给我。谢谢。</div><div>Hello, thank you for your letter. Please pardon me a delay in response. Please touch me on WeChat or call me if need me response, Thank you.</div>

  4. Log in to comment