-
Notifications
You must be signed in to change notification settings - Fork 935
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
Support for content-type in each of multi-part rquest #222
Conversation
+1 for this enhancement |
I ran into this today - I have a submit I needed to do with two parts, each with a different content type. The way I read this, it appears to only allow setting the content-type if there is a single part, is that correct? |
add tests for changes in Multipart payload
Merged the test cases. It can be merged to the main repo. |
Hello, @ab can you merge the pull request? |
Currently |
This allows users to specify content-type in payload like,
RestClient.post(url, {data: "something", content_type: "text/plain"})
Some Rest servers check for content type in each part before taking doing anything with the data in part.
This option will only be honored with multipart option enabled.