Skip to content

fix: Ensure that an envelope is cloned before it's modified#1206

Merged
mitsuhiko merged 1 commit into
masterfrom
feature/add-envelope-copy
Sep 27, 2021
Merged

fix: Ensure that an envelope is cloned before it's modified#1206
mitsuhiko merged 1 commit into
masterfrom
feature/add-envelope-copy

Conversation

@mitsuhiko
Copy link
Copy Markdown
Contributor

Previously the envelope was modified in place which meant that an envelope could not be easily sent to multiple transports. Now the http transport makes a copy of the envelope before modifying it.

@mitsuhiko mitsuhiko requested a review from untitaker September 27, 2021 09:43
Copy link
Copy Markdown
Member

@untitaker untitaker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approving without tests ; Armin will look into making the Envelope class immutable (on mypy/type level) such that we eliminate this source of bugs

@mitsuhiko mitsuhiko merged commit 7d21816 into master Sep 27, 2021
@mitsuhiko mitsuhiko deleted the feature/add-envelope-copy branch September 27, 2021 10:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants