Skip to content

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
@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