Opened 12 years ago

Closed 11 years ago

Last modified 11 years ago

#351 closed defect (fixed)

Nginx Perl: header_in('cookie') does not work in 1.4.0

Reported by: Michael Flickinger Owned by: Ruslan Ermilov
Priority: major Milestone:
Component: nginx-module Version: 1.3.x
Keywords: Cc:
uname -a: Linux xxx 2.6.39.1 #1 SMP Tue Jun 21 10:29:24 EDT 2011 i686 i686 i386 GNU/Linux
nginx -V: nginx version: nginx/1.4.0
built by gcc 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5)
TLS SNI support enabled
configure arguments: --with-http_ssl_module --with-http_perl_module

Description

When I call $r->header_in('cookie'), it is always returned as undef.

This works properly in previous versions, such as 1.3.1.

Other calls headers, such as 'User-Agent' still work just fine.

Change History (4)

comment:1 by Maxim Dounin, 12 years ago

Owner: set to Ruslan Ermilov
Status: newassigned

It looks like this was broken by X-Forwarded-For changes in 1.3.14. Ruslan, could you please look into this?

comment:2 by Maxim Dounin <mdounin@…>, 11 years ago

In f5626ab8cb87da71a12eb47ddd5fc07dcdeb0660/nginx:

Perl: fixed r->header_in("Cookie") (ticket #351).

It was broken by X-Forwarded-For related changes in f7fe817c92a2 (1.3.14)
as hh->offset is no longer 0 for Cookie.

comment:3 by Maxim Dounin, 11 years ago

Resolution: fixed
Status: assignedclosed

Fix committed, thank you for report.

comment:4 by Maxim Dounin <mdounin@…>, 11 years ago

In edc479bf33b1e438c10c4750e59dd4aef30c2490/nginx:

Perl: fixed r->header_in("Cookie") (ticket #351).

It was broken by X-Forwarded-For related changes in f7fe817c92a2 (1.3.14)
as hh->offset is no longer 0 for Cookie.

Note: See TracTickets for help on using tickets.