[Dancer-users] Bug in Dancer::Request (+1-line patch)

Richard Huxton dev at archonet.com
Wed Sep 14 23:41:46 CEST 2011


Current version of Dancer (1.3072)

Line 52:
   sub forwarded_for_address { $_[0]->env->{X_FORWARDED_FOR} }
Should read:
   sub forwarded_for_address { $_[0]->env->{HTTP_X_FORWARDED_FOR} }

At least with my install of Apache on Debian. It's possible that the 
intention is to strip the HTTP_ from env entries, but it doesn't look 
like it here.

I also suspect some of the other env vars might be missing a HTTP_ too.

-- 
   Richard Huxton
   Archonet Ltd


More information about the Dancer-users mailing list