Skip to content

Instantly share code, notes, and snippets.

@berekuk
Created May 14, 2013 10:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save berekuk/5575065 to your computer and use it in GitHub Desktop.
Save berekuk/5575065 to your computer and use it in GitHub Desktop.
Dancer::Request from env issue
$ perl -e 'use Dancer::Request; Dancer::Request->new(env => { REQUEST_METHOD => "GET", REQUEST_URI => "/", PATH_INFO => "/", QUERY_STRING => "", HTTP_foo => "abc" })->header("foo")'
Can't call method "header" on an undefined value at /Users/mmcleric/perl5/perlbrew/perls/perl-5.16.1/lib/site_perl/5.16.3/Dancer/Request.pm line 92, <DATA> line 1003.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment