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

Fix handling Strict and Empty body in AkkaBodyListener #2880

Merged
merged 2 commits into from
May 12, 2023

Conversation

kciesielski
Copy link
Member

Fixes #2778

Based on akka/akka-http#258

It turns out that responseEntity.transformDataBytes called without contentLength changes entity type to an octet-stream. This fix adds separate handling for empty entities and universal entites to preserve their type.

@kciesielski kciesielski marked this pull request as ready for review May 10, 2023 13:07
@kciesielski kciesielski requested a review from adamw May 10, 2023 13:07
@kciesielski kciesielski added the bug Something isn't working label May 11, 2023
Copy link
Member

@adamw adamw left a comment

Choose a reason for hiding this comment

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

Nice! :)

@kciesielski kciesielski merged commit f9ada2f into master May 12, 2023
15 checks passed
@mergify mergify bot deleted the bugfix/2778-akka-metrics-chunked branch May 12, 2023 05:53
@shinharad shinharad mentioned this pull request May 31, 2023
sergionoviello added a commit to benjamingeer/tapir that referenced this pull request Aug 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] MetricsRequestInterceptor with akka-http-server causing chunked response
2 participants