-
-
Notifications
You must be signed in to change notification settings - Fork 944
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(multipart): don't share MultipartParseOptions._DEFAULT_HANDLERS (#…
…2322) * fix(multipart): don't share MultipartParseOptions._DEFAULT_HANDLERS between instances * fix(media): implement a proper `Handlers.copy()` method * chore: add a versionadded docs directive * docs(newsfragments): add a newsfragment for #2293 --------- Co-authored-by: Vytautas Liuolia <[email protected]>
- Loading branch information
Showing
4 changed files
with
42 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
Customizing | ||
:attr:`MultipartParseOptions.media_handlers | ||
<falcon.media.multipart.MultipartParseOptions.media_handlers>` could previously | ||
lead to unintentionally modifying a shared class variable. | ||
This has been fixed, and the | ||
:attr:`~falcon.media.multipart.MultipartParseOptions.media_handlers` attribute | ||
is now initialized to a fresh copy of handlers for every instance of | ||
:class:`~falcon.media.multipart.MultipartParseOptions`. To that end, a proper | ||
:meth:`~falcon.media.Handlers.copy` method has been implemented for the media | ||
:class:`~falcon.media.Handlers` class. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters