Remove blank lines
Signed-off-by: Fabio José <fabiojose@gmail.com>
This commit is contained in:
parent
043a4a8072
commit
555bce84a3
|
@ -12,7 +12,6 @@ function HTTPStructured(configuration){
|
||||||
this.config["headers"]
|
this.config["headers"]
|
||||||
[Constants.HEADER_CONTENT_TYPE] =
|
[Constants.HEADER_CONTENT_TYPE] =
|
||||||
Constants.MIME_CE_JSON + "; charset=" + Constants.CHARSET_DEFAULT;
|
Constants.MIME_CE_JSON + "; charset=" + Constants.CHARSET_DEFAULT;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
HTTPStructured.prototype.emit = function(cloudevent){
|
HTTPStructured.prototype.emit = function(cloudevent){
|
||||||
|
|
|
@ -37,7 +37,6 @@ function resolve_binding_name(payload, headers) {
|
||||||
var contentType = headers[Constants.HEADER_CONTENT_TYPE];
|
var contentType = headers[Constants.HEADER_CONTENT_TYPE];
|
||||||
if(contentType.startsWith(Constants.MIME_CE)){
|
if(contentType.startsWith(Constants.MIME_CE)){
|
||||||
// Structured
|
// Structured
|
||||||
|
|
||||||
if(allowed_structured_content_types.includes(contentType)){
|
if(allowed_structured_content_types.includes(contentType)){
|
||||||
return structured;
|
return structured;
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue