Skip to content
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

Update HttpRequestMessageFactory to correctly set the Content-Length header #3631

Merged
merged 1 commit into from
Feb 3, 2025

Conversation

dscpinheiro
Copy link
Contributor

Description

Fixes #3629

Updates the .NET Standard implementation of the HttpRequestMessageFactory class to consider the current stream position when setting the Content-Length header (note: we have an existing test for a similar scenario but it only runs for the .NET Framework - another data point for #1181).

Testing

  • Dry-run: DRY_RUN-fd5ab0eb-2c23-4fe3-9280-70cf24752fa6

Types of changes

  • Bug fix (non-breaking change which fixes an issue)

Checklist

  • My code follows the code style of this project
  • I have read the README document
  • I have added tests to cover my changes
  • All new and existing tests passed

License

  • I confirm that this pull request can be released under the Apache 2 license

@dscpinheiro dscpinheiro requested a review from normj February 1, 2025 01:43
@dscpinheiro dscpinheiro merged commit 32dfbb1 into main-staging Feb 3, 2025
1 check passed
@dscpinheiro dscpinheiro deleted the dspin/s3-3629 branch February 3, 2025 00:32
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.

5 participants