Setting Content-Type for serialized Objects.

This commit is contained in:
Mark Fisher
2009-02-20 21:38:58 +00:00
parent 7bbb97b71a
commit 64188597e2

View File

@@ -272,6 +272,7 @@ public class HttpInboundEndpoint extends SimpleMessagingGateway implements HttpR
objectStream.close();
byte[] bytes = byteStream.toByteArray();
httpResponse.getOutputStream().write(bytes);
httpResponse.setContentType("application/x-java-serialized-object");
httpResponse.setContentLength(bytes.length);
httpResponse.flushBuffer();
}