Skip to content

[Issue-412]: use self.body for setting _SynchronousProducer length attribute#413

Merged
glyph merged 3 commits intotwisted:trunkfrom
ab-pilot:issue-412-stubtreq-syncproducer
Jun 13, 2025
Merged

[Issue-412]: use self.body for setting _SynchronousProducer length attribute#413
glyph merged 3 commits intotwisted:trunkfrom
ab-pilot:issue-412-stubtreq-syncproducer

Conversation

@ab-pilot
Copy link
Contributor

Resolves #412

These changes use the encoded body to set _SynchronousProducer length attribute instead of the input string.

Copy link
Member

@glyph glyph left a comment

Choose a reason for hiding this comment

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

Looks good. Assuming tests are happy, let's land this.

@glyph glyph enabled auto-merge June 13, 2025 18:44
@glyph
Copy link
Member

glyph commented Jun 13, 2025

I snuck in a bit of reformatting with black while making the linter happy; we should probably do the whole codebase soon.

@glyph glyph merged commit 0b4247e into twisted:trunk Jun 13, 2025
19 checks passed
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.

StubTreq _SynchronousProducer does not use encoded body to set length.

2 participants