-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Fix MultipartWriter.append* no longer returning part/payload. #2759
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.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.txt
CHANGES
folder<issue_id>.<type>
for example (588.bugfix)issue_id
change 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.