mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-23 14:40:00 +00:00
Merge branch '6.2.x'
This commit is contained in:
+4
-1
@@ -112,7 +112,10 @@ class JettyCoreServerHttpRequest extends AbstractServerHttpRequest {
|
||||
// We access the request body as a Flow.Publisher, which is wrapped as an org.reactivestreams.Publisher and
|
||||
// then wrapped as a Flux.
|
||||
return Flux.from(FlowAdapters.toPublisher(Content.Source.asPublisher(this.request)))
|
||||
.map(this.dataBufferFactory::wrap);
|
||||
.map(chunk -> {
|
||||
chunk.retain();
|
||||
return this.dataBufferFactory.wrap(chunk);
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user