Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
arduino-esp32
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
arduino-esp32
Commits
60b6faac
Unverified
Commit
60b6faac
authored
Jul 10, 2024
by
Me No Dev
Committed by
GitHub
Jul 10, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(httpc): Fix data read was less than expected (#9998)
parent
6debc5c9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
libraries/HTTPClient/src/HTTPClient.cpp
libraries/HTTPClient/src/HTTPClient.cpp
+2
-2
No files found.
libraries/HTTPClient/src/HTTPClient.cpp
View file @
60b6faac
...
@@ -1362,7 +1362,7 @@ int HTTPClient::writeToStreamDataBlock(Stream *stream, int size) {
...
@@ -1362,7 +1362,7 @@ int HTTPClient::writeToStreamDataBlock(Stream *stream, int size) {
// some time for the stream
// some time for the stream
delay
(
1
);
delay
(
1
);
int
leftBytes
=
(
readBytes
-
bytesWrite
);
int
leftBytes
=
(
bytesRead
-
bytesWrite
);
// retry to send the missed bytes
// retry to send the missed bytes
bytesWrite
=
stream
->
write
((
buff
+
bytesWrite
),
leftBytes
);
bytesWrite
=
stream
->
write
((
buff
+
bytesWrite
),
leftBytes
);
...
@@ -1385,7 +1385,7 @@ int HTTPClient::writeToStreamDataBlock(Stream *stream, int size) {
...
@@ -1385,7 +1385,7 @@ int HTTPClient::writeToStreamDataBlock(Stream *stream, int size) {
// count bytes to read left
// count bytes to read left
if
(
len
>
0
)
{
if
(
len
>
0
)
{
len
-=
readBytes
;
len
-=
bytesRead
;
}
}
delay
(
0
);
delay
(
0
);
...
...
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