Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added ->finalize to handler_psgi() result. Fixes Plack::Response. #1

Merged
merged 1 commit into from
Jun 14, 2012
Merged

Conversation

0xAF
Copy link
Contributor

@0xAF 0xAF commented Jun 13, 2012

hadnler_psgi() in JSON::RPC::Dispatch is not working with Plack (at least for version 0.9988).
Plack complains that the response should be array, not Plack::Response instance.
e.g.:
Response should be array ref or code ref: Plack::Response=HASH(0x1d1a928) at perl-lib/Plack/Middleware/Lint.pm line 101

handler_psgi() in Dispatcher.pm returns this:
return $res; # Plack::Response instance
instead of this:
return $res->finalize; # array

Please check and pull.

lestrrat added a commit that referenced this pull request Jun 14, 2012
Added ->finalize to handler_psgi() result. Fixes Plack::Response.
@lestrrat lestrrat merged commit ce40b77 into lestrrat-p5:master Jun 14, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants