mirror of
https://github.com/spring-projects/spring-framework
synced 2026-06-08 17:33:33 +00:00
Ensure buffers released in HttpHeadResponseDecorator
See gh-25908
This commit is contained in:
+3
-1
@@ -56,7 +56,9 @@ public class HttpHeadResponseDecorator extends ServerHttpResponseDecorator {
|
||||
.then();
|
||||
}
|
||||
else {
|
||||
return Flux.from(body).then();
|
||||
return Flux.from(body)
|
||||
.doOnNext(DataBufferUtils::release)
|
||||
.then();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user