Double quotes

Signed-off-by: Fabio José <fabiojose@gmail.com>
This commit is contained in:
Fabio José 2018-12-15 11:22:06 -02:00
parent 471e80ca16
commit cf0887d139
1 changed files with 3 additions and 4 deletions

View File

@ -3,8 +3,8 @@ var axios = require("axios");
function HTTPStructured(configuration){
this.config = configuration;
this.config['headers'] = {
'Content-Type':'application/cloudevents+json; charset=utf-8'
this.config["headers"] = {
"Content-Type":"application/cloudevents+json; charset=utf-8"
};
}
@ -14,11 +14,10 @@ HTTPStructured.prototype.emit = function(cloudevent){
var _config = JSON.parse(JSON.stringify(this.config));
// Set the cloudevent payload
_config['data'] = cloudevent.format();
_config["data"] = cloudevent.format();
// Return the Promise
return axios.request(_config);
}
module.exports = HTTPStructured;