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

Request body only once in ChunkedSink #1737

Merged
merged 2 commits into from
Jan 23, 2024

Conversation

kasmarian
Copy link
Member

@kasmarian kasmarian commented Jan 19, 2024

Description

As HttpMessage.getBodyAsString in some occasions may be a heavy operation, it's better to reduce number of times it's requested. In this changeset I remove the second invocation of the method in ChunkingSink.

Motivation and Context

Addresses #1713

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.

As HttpMessage.getBodyAsString in some occasions may be a heavy operation, it's better to reduce number of times it's requested. In this changeset I remove the second invocation of the method in ChunkingSink.
@lukasniemeier-zalando
Copy link
Member

👍

@lukasniemeier-zalando lukasniemeier-zalando merged commit c58a34b into main Jan 23, 2024
2 checks passed
@lukasniemeier-zalando lukasniemeier-zalando deleted the request_bodyAsString_only_once branch January 23, 2024 15:58
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