Repository navigation
Conversation
Insufficient dataNot enough activity yet to make a reliable assessment. This is an automated analysis by AgentScan |
Confidence Score: 5/5
[Low impact] This PR appears safe to merge. Reviews (1) · Last reviewed commit: "Add changelog entry for PR #14579" · Reviewed by Greptile |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #14579 +/- ##
=======================================
Coverage 99.13% 99.13%
=======================================
Files 135 135
Lines 54630 54634 +4
Branches 2808 2808
=======================================
+ Hits 54158 54162 +4
Misses 357 357
Partials 115 115
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. |
Merging this PR will not alter performance1 warning
Comparing Footnotes
|
What do these changes do?
Ensure \FormData.add_field()\ only sets \self._is_multipart = True\ after all argument validations succeed and the field is appended.
Previously, \self._is_multipart\ was mutated before validating
ame, \ilename, and \content_type. If validation raised \TypeError\ or \ValueError\ and the caller caught the exception and reused the form, previously accepted fields were unexpectedly encoded as \multipart/form-data\ instead of \�pplication/x-www-form-urlencoded.
Are there changes in behavior for the user?
No breaking changes; rejected \�dd_field()\ calls no longer leave \FormData\ in a partially mutated multipart state.
Checklist