micronaut-projects / micronaut-core

Micronaut Application Framework
http://micronaut.io
Apache License 2.0
6k stars 1.04k forks source link

Using HttpRequest.mutate() breakes access to request body. #10346

Open marek-stanulewicz opened 5 months ago

marek-stanulewicz commented 5 months ago

Expected Behavior

Mutated request should allow access to body like original one.

Actual Behaviour

The returned body is null.

Steps To Reproduce

Just run the test.

Environment Information

Windows. JDK Corretto 17.0.9.

Example Application

https://github.com/marek-stanulewicz/micronaut-issues/tree/http-request-mutation

Version

4.2.3

yawkat commented 5 months ago

might have to wait for body rework.