Double quotes
Signed-off-by: Fabio José <fabiojose@gmail.com>
This commit is contained in:
parent
471e80ca16
commit
cf0887d139
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue