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

DM-47027: Change ws_post_params_dependency to handle multiple occurrences of the same param #317

Merged
merged 1 commit into from
Oct 24, 2024

Conversation

stvoutsin
Copy link
Member

@stvoutsin stvoutsin commented Oct 22, 2024

Summary

PR addresses issue where the uws_post_params dependency did not correctly read in list parameters, i.e. multiple occurrences of the same param. The fix was to change items() to multi_items() on the request.form() object.
A test has been added which sets up a test endpoint which returns the params passed in to the request, and exercises it with a request with multiple of the same param.

Add test for change to hande multiple of the same post params
Copy link
Member

@rra rra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, thank you!

@stvoutsin stvoutsin merged commit a28db33 into main Oct 24, 2024
6 checks passed
@stvoutsin stvoutsin deleted the tickets/DM-47027 branch October 24, 2024 20:39
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