Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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