Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
N
node-bigstream
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
3
Merge Requests
3
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
bs
node-bigstream
Commits
305886fa
Commit
305886fa
authored
Mar 12, 2019
by
Krit Punpreuk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update perform.js
parent
9cd012b9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
perform.js
plugins/do/do-http-request/perform.js
+7
-4
No files found.
plugins/do/do-http-request/perform.js
View file @
305886fa
...
...
@@ -10,19 +10,22 @@ function execute_function(context,output,response){
var
output_type
=
'text'
;
var
url
=
param
.
url
;
var
body
=
param
.
body
;
var
env
=
{
'output'
:
{
'meta'
:
meta
,
'data'
:
data
},
'url'
:
''
'url'
:
''
,
'body'
:
''
}
var
script
=
new
vm
.
Script
(
"url=`"
+
url
+
"`"
);
var
script
=
new
vm
.
Script
(
"url=`"
+
url
+
"`
;body=`"
+
body
+
"`
"
);
var
context
=
new
vm
.
createContext
(
env
);
script
.
runInContext
(
context
);
url
=
env
.
url
;
body
=
env
.
body
;
var
reject
=
true
;
...
...
@@ -51,7 +54,7 @@ function execute_function(context,output,response){
// Setup Body if POST or PUT
if
(
method
==
'POST'
||
method
==
'PUT'
)
{
if
(
typeof
param
.
body
==
'object'
)
{
option
.
body
=
param
.
body
option
.
body
=
body
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment