[Catalyst] App breaks after updating to
Catalyst::Plugin::Session::State::URI v0.14
Tomas Doran
bobtfish at bobtfish.net
Thu Aug 19 19:14:11 GMT 2010
On 19 Aug 2010, at 19:32, Charlie Garrison wrote:
> Good morning,
>
> On 19/08/10 at 6:32 PM +0100, Ash Berlin <ash_cpan at firemirror.com>
> wrote:
>
>>> if ( my $sid = $c->request->parameters->{$param} ) {
>>
>> Try changing parameters to query_parameters. It sounds like hitting
>> params is causing it to read the body and mess things up when it
>> comes to read the body again.
>
> Will do. And that fixes it, thanks.
Great, come grab a commit bit? :)
>> Also if you could see to creating a (failing) regression test this
>> would help.
>
> I've been working on that. But apparently I don't know how to create
> a POST request with body parameters using
> Test::WWW::Mechanize::Catalyst.
>
> I'm trying to use something like this:
>
> $m->post_ok("http://localhost/uri/body_param",
> {content_type=>'application/x-www-form-
> urlencoded',content=>"body_param=value"},
> "post request");
>
> Any quick suggestions on what I'm doing wrong?
how about ->post_ok("http://localhost/uri/body_param",
{ body_param=value });
Cheers
t0m
More information about the Catalyst
mailing list