File tree Expand file tree Collapse file tree 4 files changed +5
-4
lines changed Expand file tree Collapse file tree 4 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 1
1
var axios = require ( "axios" ) ;
2
2
3
3
function HTTPBinary ( configuration ) {
4
- this . config = configuration ;
4
+ this . config = JSON . parse ( JSON . stringify ( configuration ) ) ;
5
5
6
6
this . config [ "headers" ] = {
7
7
"Content-Type" :"application/json; charset=utf-8"
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ var axios = require("axios");
2
2
var empty = require ( "is-empty" ) ;
3
3
4
4
function HTTPBinary ( configuration ) {
5
- this . config = configuration ;
5
+ this . config = JSON . parse ( JSON . stringify ( configuration ) ) ;
6
6
7
7
this . config [ "headers" ] = {
8
8
"Content-Type" :"application/json; charset=utf-8"
Original file line number Diff line number Diff line change 1
1
var axios = require ( "axios" ) ;
2
2
3
3
function HTTPStructured ( configuration ) {
4
- this . config = configuration ;
4
+ this . config = JSON . parse ( JSON . stringify ( configuration ) ) ;
5
5
6
6
this . config [ "headers" ] = {
7
7
"Content-Type" :"application/cloudevents+json; charset=utf-8"
@@ -13,6 +13,7 @@ HTTPStructured.prototype.emit = function(cloudevent){
13
13
// Create new request object
14
14
var _config = JSON . parse ( JSON . stringify ( this . config ) ) ;
15
15
16
+
16
17
// Set the cloudevent payload
17
18
_config [ "data" ] = cloudevent . format ( ) ;
18
19
Original file line number Diff line number Diff line change 1
1
var axios = require ( "axios" ) ;
2
2
3
3
function HTTPStructured ( configuration ) {
4
- this . config = configuration ;
4
+ this . config = JSON . parse ( JSON . stringify ( configuration ) ) ;
5
5
6
6
this . config [ "headers" ] = {
7
7
"Content-Type" :"application/cloudevents+json; charset=utf-8"
You can’t perform that action at this time.
0 commit comments