Setting Content-Type for byte array.

This commit is contained in:
Mark Fisher
2009-03-20 17:06:37 +00:00
parent c90db4b078
commit 735125a0a3

View File

@@ -115,6 +115,7 @@ public class DefaultOutboundRequestMapper implements OutboundRequestMapper {
String contentType = null;
if (payload instanceof byte[]) {
byteStream.write((byte[]) payload);
contentType = "application/octet-stream";
}
else if (payload instanceof String) {
byteStream.write(((String) payload).getBytes(this.charset));