Fix MultipartWriter.append* no longer returning part/payload.#2759
Conversation
- Fixes commit: caa6bdb MultipartWriter.append methods used to return the part appended to the writer so one could set the content_disposition, etc. This patch restores that functionality so the code matches the documentation in multipart.rst - This patch also makes append_json use the JsonPayload object instead of duplicating functionality.
Codecov Report
@@ Coverage Diff @@
## 3.0 #2759 +/- ##
=======================================
Coverage 97.97% 97.97%
=======================================
Files 39 39
Lines 7340 7340
Branches 1285 1285
=======================================
Hits 7191 7191
Misses 47 47
Partials 102 102
Continue to review full report at Codecov.
|
kxepal
left a comment
There was a problem hiding this comment.
LGFM. It's interesting that append_form already tried to return result of append_payload, but those returned nothing.
|
Thanks! |
|
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a [new issue] for related bugs. |
What do these changes do?
Fixes commit: caa6bdb
MultipartWriter.append methods used to return the part appended to the writer so one could set the content_disposition, etc. This patch restores that functionality so the code matches the documentation in multipart.rst
This patch also makes append_json use the JsonPayload object instead of duplicating functionality.
Are there changes in behavior for the user?
Fix regression
Related issue number
#1798
Checklist
CONTRIBUTORS.txtCHANGESfolder<issue_id>.<type>for example (588.bugfix)issue_idchange it to the pr id after creating the pr.feature: Signifying a new feature..bugfix: Signifying a bug fix..doc: Signifying a documentation improvement..removal: Signifying a deprecation or removal of public API..misc: A ticket has been closed, but it is not of interest to users.