Skip Menu |

This queue is for tickets about the Poet CPAN distribution.

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

Owner: Nobody in particular
Requestors: CYBAEA [...]

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

Subject: Poet::Plack::Request should override the method() method
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Disposition: inline
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
X-RT-Encrypt: 0
X-RT-Sign: 0
Content-Length: 575
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 infrastructure.

Please report any issues with to