-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
[Feature Request] Add option to customize boundary in multipart request #2374
Comments
@Tienisto as you mention reqwest/src/async_impl/multipart.rs Line 515 in 5715050
looks easy to add it, can you gives more info about why do yo need it? |
I am developing an API client. I can imagine that users might want to provide a custom boundary to debug or test things out. |
I'll open a PR and let's see if it works for you. |
Is there an actual use case needed, or is it currently only that some users might want it? I don't feel particularly inclined to add it for a hypothetical... |
Well, as I mentioned, I am developing an API client (similar to Postman or Insomnia) so I would like to have this feature (that's why I created this issue). If there is a hypothetical security vulnerability when setting a specific boundary, then users might want to try it out without digging into hyper or switching to Python. Besides that, what is the purpose of exposing the |
also would like to know what the http spec said about it? |
Hello,
I would like to provide a custom boundary for the multipart request.
It seems that it is currently hard coded to generate a random string:
reqwest/src/async_impl/multipart.rs
Line 291 in 5715050
I would like to provide a custom boundary like this:
The text was updated successfully, but these errors were encountered: