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

Debug output does not show multiple parameters with Hash::MultiValue #149

Closed
tremor69 opened this issue Dec 22, 2016 · 3 comments
Closed

Comments

@tremor69
Copy link

It seems to me that the default debug output of the development server does not show parameters that appear multiple times correctly when use_hash_multivalue_in_request is switched on.

Unfortunately I cannot find the location in the code where this debug output is generated or I would try to provide a fix. But maybe I have made some mistake and this is not at all a bug.

Request:
/test?attribute-25=opt1&attribute-25=opt2&attribute-25=opt3

Output:

Body Parameters are:
.-------------------------------------+-------------------------------------------------.
| Parameter                           | Value                                           |
+-------------------------------------+-------------------------------------------------+
| attribute-25                        | opt3                                            |
'-------------------------------------+-------------------------------------------------'

Expected:

Body Parameters are:
.-------------------------------------+-------------------------------------------------.
| Parameter                           | Value                                           |
+-------------------------------------+-------------------------------------------------+
| attribute-25  (multiple)            | opt1, opt2, opt3                                |
'-------------------------------------+-------------------------------------------------'
@perl-catalyst-sync
Copy link

perl-catalyst-sync commented Dec 22, 2016 via email

@tremor69
Copy link
Author

I think it is actually easier for me to fix it if you can point me to the place/file/sub where this debug output is generated.

@tremor69
Copy link
Author

Just found it. I will try to prepare a pull request.

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

No branches or pull requests

3 participants