requests / toolbelt

A toolbelt of useful classes and functions to be used with python-requests
https://toolbelt.readthedocs.org
Other
999 stars 186 forks source link

Strip empty fields in MultipartEncoder #326

Open rdbisme opened 2 years ago

rdbisme commented 2 years ago

This is coherent with what's done in requests. My usecase concerns using responses.matchers.multipart_matcher, which uses bare requests to encode the multipart request, while the client, that specifically is Gitlab's one, uses MultipartEncoder. The two bodies for the request do not match

rdbisme commented 2 years ago

Up? :)