parsersByEnconding to be compliance with datacontentenconding
Signed-off-by: Fabio José <fabiojose@gmail.com>
This commit is contained in:
parent
fad43ecb4e
commit
701c7ec77b
|
@ -16,6 +16,10 @@ parserByType[Constants.MIME_OCTET_STREAM] = {
|
||||||
parse(payload) { return payload; }
|
parse(payload) { return payload; }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const parsersByEncoding = {};
|
||||||
|
parsersByEncoding[null] = parserByType;
|
||||||
|
parsersByEncoding[undefined] = parserByType;
|
||||||
|
|
||||||
const allowedContentTypes = [];
|
const allowedContentTypes = [];
|
||||||
allowedContentTypes.push(Constants.MIME_JSON);
|
allowedContentTypes.push(Constants.MIME_JSON);
|
||||||
allowedContentTypes.push(Constants.MIME_OCTET_STREAM);
|
allowedContentTypes.push(Constants.MIME_OCTET_STREAM);
|
||||||
|
@ -58,7 +62,7 @@ setterByHeader[Constants.HEADER_CONTENT_TYPE] = {
|
||||||
|
|
||||||
function Receiver(configuration) {
|
function Receiver(configuration) {
|
||||||
this.receiver = new BinaryHTTPReceiver(
|
this.receiver = new BinaryHTTPReceiver(
|
||||||
parserByType,
|
parsersByEncoding,
|
||||||
setterByHeader,
|
setterByHeader,
|
||||||
allowedContentTypes,
|
allowedContentTypes,
|
||||||
requiredHeaders,
|
requiredHeaders,
|
||||||
|
|
Loading…
Reference in New Issue