mirror of
https://github.com/apache/olingo-odata4.git
synced 2025-02-06 01:59:12 +00:00
[OLINGO-989] Additional charset handling 1
Signed-off-by: Christian Amend <christian.amend@sap.com>
This commit is contained in:
parent
3e9e69314b
commit
f46c680c9b
@ -235,7 +235,7 @@ public abstract class AbstractODataRequest extends AbstractRequest implements OD
|
||||
final String value = getHeader(name);
|
||||
|
||||
if (StringUtils.isNotBlank(value)) {
|
||||
baos.write((name + ": " + value).getBytes());
|
||||
baos.write((name + ": " + value).getBytes(DEFAULT_CHARSET));
|
||||
baos.write(ODataStreamer.CRLF);
|
||||
}
|
||||
}
|
||||
|
@ -87,7 +87,7 @@ public abstract class AbstractODataBatchRequestItem extends AbstractODataStreame
|
||||
// stream batch content type
|
||||
stream(ODataBatchConstants.ITEM_CONTENT_TYPE_LINE.getBytes(DEFAULT_CHARSET));
|
||||
newLine();
|
||||
stream(ODataBatchConstants.ITEM_TRANSFER_ENCODING_LINE.getBytes());
|
||||
stream(ODataBatchConstants.ITEM_TRANSFER_ENCODING_LINE.getBytes(DEFAULT_CHARSET));
|
||||
newLine();
|
||||
stream((ODataBatchConstants.CHANGESET_CONTENT_ID_NAME + ":" + contentId).getBytes());
|
||||
newLine();
|
||||
@ -103,7 +103,7 @@ public abstract class AbstractODataBatchRequestItem extends AbstractODataStreame
|
||||
// stream batch content type
|
||||
stream(ODataBatchConstants.ITEM_CONTENT_TYPE_LINE.getBytes(DEFAULT_CHARSET));
|
||||
newLine();
|
||||
stream(ODataBatchConstants.ITEM_TRANSFER_ENCODING_LINE.getBytes());
|
||||
stream(ODataBatchConstants.ITEM_TRANSFER_ENCODING_LINE.getBytes(DEFAULT_CHARSET));
|
||||
newLine();
|
||||
newLine();
|
||||
|
||||
|
@ -116,7 +116,7 @@ public class ODataChangesetImpl extends AbstractODataBatchRequestItem
|
||||
newLine();
|
||||
|
||||
// stream batch-boundary
|
||||
stream(("--" + boundary).getBytes());
|
||||
stream(("--" + boundary).getBytes(DEFAULT_CHARSET));
|
||||
newLine();
|
||||
|
||||
// stream the request
|
||||
|
Loading…
x
Reference in New Issue
Block a user