-
Notifications
You must be signed in to change notification settings - Fork 5
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
QUERY is no longer supported as an argument to psgi_app() #7
Comments
Dear ichesnokov, |
Hi @MaxPerl, thanks for the provided updates. |
Additionally it has to be mentioned somewhere that |
Essentially I think that forced override of QUERY parameter is unacceptable because it brings too many incompatibilities with the existing code, behavior and docs and should be reverted. Instead, |
Dear ichesnokov, On the other hand, for me passing a custom query object through the QUERY parameter is more natural than ovveriding cgiapp_get_query. So both options should be supported also in a Plack environment. |
This patch was written long ago. I would rewrite this now as follows:
This way it both satisfies the docs and the people that worked around by using psgi_app as request handler. |
We cannot pass QUERY as an argument to
psgi_app()
anymore (after an adoption of code from markstos#17) because it will be overwritten by a newCGI::PSGI
object.There were some use cases where this was useful - e.g. when
psgi_app()
was used as a helper method for callingnew()
andrun_as_psgi()
on every request.So I'd suggest to document it at least.
Documentation that shows usage of psgi_app() needs fixing as well.
As a side note, I don't completely see why
QUERY
parameter was chosen as a way to provide CGI::PSGI object to CGI::Application - because the more "natural" (and documented) way to do that is apparently overriding ofcgiapp_get_query()
method. It should be documented which of them has a precedence, if nothing else.The text was updated successfully, but these errors were encountered: