Skip Menu |
 

This queue is for tickets about the Poet CPAN distribution.

Report information
The Basics
Id: 82903
Status: new
Priority: 0/
Queue: Poet

People
Owner: Nobody in particular
Requestors: CYBAEA [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.13
Fixed in: (no value)



Subject: Poet::Plack::Request should override the method() method
Download (untitled) / with headers
text/plain 575b
Too much Moose causes the method() method (!) to break in Poet::Plack::Request: $ perl -E 'use Plack::Request; my $r = Plack::Request->new({REQUEST_METHOD => "happy"}); say $r->method();' happy $ perl -E 'use Poet::Plack::Request; my $r = Poet::Plack::Request->new({REQUEST_METHOD => "happy"}); say $r->method();' The bug is the empty line above. The fix is to implement method() in Poet::Plack::Request, e.g. as method method { return($self->env()->{REQUEST_METHOD}); }; The reason for the bug is probably clear from the stutter in the implementation proposed….


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.