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

Using a map with multipart-params leads to non-determinant ordering #74

Open
calebsmith opened this issue Aug 31, 2015 · 0 comments
Open

Comments

@calebsmith
Copy link
Contributor

I was having an issue passing a map to multipart params in which the server would reject the request as invalid when the code was run in certain contexts, but not others. It seemed deterministic, but was puzzling because the code was identical.

I finally realized that multipart/form-data is supposed to be sent in the order the fields are presented in the document, per http://www.w3.org/TR/html4/interact/forms.html#h-17.13.4

Therefore, for reliable use of this, an ordered data structure is needed such as a vector or ordered-map

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

1 participant