-
Notifications
You must be signed in to change notification settings - Fork 184
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Do not concatenate
Publisher.empty()
message body (#1497)
Motivation: For `HeaderUtils#setContentLength(...)`, when the `messageBody` is exactly `Publisher.empty()` there are no operators applied for the `messageBody`. In this case we do not need concatenation. Modifications: - Skip concatenation when `messageBody == empty()`; - Add tests when payloadBody is not set at all; Result: Less operators applied during request/response processing when not necessary.
- Loading branch information
1 parent
fb8af44
commit 82f2dd3
Showing
2 changed files
with
40 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters