INT-1739 fixed HttpRequestHandlingEndpointSupport to call close() on ServletServerHttpResponse to make sure that mapped headers are written to the response

This commit is contained in:
Oleg Zhurakousky
2011-01-18 18:39:12 -05:00
parent befe46fe86
commit 52a1439991
2 changed files with 2 additions and 1 deletions

View File

@@ -270,6 +270,7 @@ abstract class HttpRequestHandlingEndpointSupport extends MessagingGatewaySuppor
if (reply != null) {
ServletServerHttpResponse response = new ServletServerHttpResponse(servletResponse);
this.headerMapper.fromHeaders(((Message<?>) reply).getHeaders(), response.getHeaders());
response.close();
if (this.extractReplyPayload) {
reply = ((Message<?>) reply).getPayload();
}