Skip to content

Multipart body should not be map[string][]byte #849

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

Draft
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

jonesrussell
Copy link

Just fartin' around, saw #822 and wanted to see what Cursor thought.

…ap for multipart requests

The PostMultipart function now takes a slice of FormField structs, allowing for more structured handling of form data, including optional filenames. The createMultipartReader function has also been updated accordingly to accommodate this change.
…rm data handling

The PostMultipart function has been modified to accept a slice of FormField structs instead of a map, enhancing the structure and flexibility of multipart requests. The createMultipartReader function has been adjusted to support this change.
Implemented tests for the Collector's PostMultipart method, covering basic multipart form submissions, file uploads, and submissions with different fields. Enhanced the test server to handle multipart form data correctly, ensuring robust validation of response status codes.
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.

1 participant