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
dba25762
Commit
dba25762
authored
Nov 19, 2019
by
Kamron Aroonrua
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
do-http
parent
3f9a6f8b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
perform.js
plugins/do/do-http/perform.js
+2
-2
No files found.
plugins/do/do-http/perform.js
View file @
dba25762
...
...
@@ -51,10 +51,10 @@ function send_request(prm,cb)
{
options
.
method
=
prm
.
method
.
toUpperCase
();
if
(
body_type
==
'json'
&&
typeof
prm
.
body
==
'object'
){
if
(
prm
.
body_type
==
'json'
&&
typeof
prm
.
body
==
'object'
){
options
.
headers
[
'content-type'
]
=
'application/json'
;
options
.
json
=
prm
.
body
;
}
else
if
(
body_type
==
'text'
||
typeof
prm
.
body
==
'string'
){
}
else
if
(
prm
.
body_type
==
'text'
||
typeof
prm
.
body
==
'string'
){
options
.
headers
[
'content-type'
]
=
'text/plain'
;
options
.
body
=
prm
.
body
;
}
else
{
...
...
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