Skip to content

Commit

Permalink
fix forwarding of post data
Browse files Browse the repository at this point in the history
  • Loading branch information
Frederik Wouters committed Mar 30, 2016
1 parent c6e5552 commit 970a0f9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions functions.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,12 +109,12 @@ var connectAmqpServer = function (amqpServer) {
if (typeof message.data != 'undefined') {
message = message.data.toString('utf8');
}
console.log(message);
if (typeof message == 'object') {
var json = JSON.stringify(message)
} else {
json = message;
}
//console.log(message);
// if (typeof message == 'object') {
// var json = JSON.stringify(message)
// } else {
json = message;
//}

var trigger = {};
trigger.type = 'AMQP';
Expand Down Expand Up @@ -207,7 +207,7 @@ var executeSenderHTTP = function (req, sender, body, headers, trigger) {
var postObject = {
headers: PostHeaders,
url: sender.url,
body: require('querystring').stringify(body)
form: body
};
if (global.config.proxy.proxy_enabled) {
console.log('[HTTP] PROXY: ' + 'http://' + global.config.proxy.proxy_server + ':' + global.config.proxy.proxy_port);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Requestador",
"version": "1.4.3",
"version": "1.4.4",
"private": true,
"scripts": {
"start": "node ."
Expand Down

0 comments on commit 970a0f9

Please sign in to comment.