Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jio
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Aurel
jio
Commits
5c780c15
Commit
5c780c15
authored
Apr 19, 2018
by
Aurel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wait for buffer to be filled before sending request
parent
a7993447
Changes
4
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
6 deletions
+10
-6
dist/jio-latest.min.js
dist/jio-latest.min.js
+1
-1
dist/jio-v3.28.0.min.js
dist/jio-v3.28.0.min.js
+1
-1
dist/nodejs/jio.js
dist/nodejs/jio.js
+4
-2
src/jio-nodejs.js
src/jio-nodejs.js
+4
-2
No files found.
dist/jio-latest.min.js
View file @
5c780c15
This diff is collapsed.
Click to expand it.
dist/jio-v3.28.0.min.js
View file @
5c780c15
This diff is collapsed.
Click to expand it.
dist/nodejs/jio.js
View file @
5c780c15
...
...
@@ -2149,8 +2149,10 @@ return new Parser;
if
(
param
.
data
instanceof
FormData
)
{
xhr
.
setRequestHeader
(
"
Content-Type
"
,
"
multipart
\
/form-data; boundary=
"
+
param
.
data
.
getBoundary
());
param
.
data
.
pipe
(
buffer
);
xhr
.
send
(
buffer
.
getContents
());
param
.
data
.
pipe
(
buffer
,
{
end
:
false
});
param
.
data
.
on
(
'
end
'
,
function
()
{
xhr
.
send
(
buffer
.
getContentsAsString
(
'
utf-8
'
));
});
}
else
{
xhr
.
send
(
param
.
data
);
}
...
...
src/jio-nodejs.js
View file @
5c780c15
...
...
@@ -79,8 +79,10 @@
if
(
param
.
data
instanceof
FormData
)
{
xhr
.
setRequestHeader
(
"
Content-Type
"
,
"
multipart
\
/form-data; boundary=
"
+
param
.
data
.
getBoundary
());
param
.
data
.
pipe
(
buffer
);
xhr
.
send
(
buffer
.
getContents
());
param
.
data
.
pipe
(
buffer
,
{
end
:
false
});
param
.
data
.
on
(
'
end
'
,
function
()
{
xhr
.
send
(
buffer
.
getContentsAsString
(
'
utf-8
'
));
});
}
else
{
xhr
.
send
(
param
.
data
);
}
...
...
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