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
b0c6991b
Commit
b0c6991b
authored
Jul 05, 2018
by
me-no-dev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Small adjustments to the web server
parent
8afdd71b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
3 deletions
+5
-3
libraries/WebServer/src/Parsing.cpp
libraries/WebServer/src/Parsing.cpp
+1
-1
libraries/WebServer/src/WebServer.cpp
libraries/WebServer/src/WebServer.cpp
+2
-0
libraries/WebServer/src/WebServer.h
libraries/WebServer/src/WebServer.h
+2
-2
No files found.
libraries/WebServer/src/Parsing.cpp
View file @
b0c6991b
...
...
@@ -359,7 +359,7 @@ uint8_t WebServer::_uploadReadByte(WiFiClient& client){
int
res
=
client
.
read
();
if
(
res
==
-
1
){
while
(
!
client
.
available
()
&&
client
.
connected
())
yield
(
);
delay
(
2
);
res
=
client
.
read
();
}
return
(
uint8_t
)
res
;
...
...
libraries/WebServer/src/WebServer.cpp
View file @
b0c6991b
...
...
@@ -94,11 +94,13 @@ WebServer::~WebServer() {
void
WebServer
::
begin
()
{
close
();
_server
.
begin
();
_server
.
setNoDelay
(
true
);
}
void
WebServer
::
begin
(
uint16_t
port
)
{
close
();
_server
.
begin
(
port
);
_server
.
setNoDelay
(
true
);
}
String
WebServer
::
_extractParam
(
String
&
authReq
,
const
String
&
param
,
const
char
delimit
){
...
...
libraries/WebServer/src/WebServer.h
View file @
b0c6991b
...
...
@@ -34,10 +34,10 @@ enum HTTPUploadStatus { UPLOAD_FILE_START, UPLOAD_FILE_WRITE, UPLOAD_FILE_END,
enum
HTTPClientStatus
{
HC_NONE
,
HC_WAIT_READ
,
HC_WAIT_CLOSE
};
enum
HTTPAuthMethod
{
BASIC_AUTH
,
DIGEST_AUTH
};
#define HTTP_DOWNLOAD_UNIT_SIZE 14
60
#define HTTP_DOWNLOAD_UNIT_SIZE 14
36
#ifndef HTTP_UPLOAD_BUFLEN
#define HTTP_UPLOAD_BUFLEN
2048
#define HTTP_UPLOAD_BUFLEN
1436
#endif
#define HTTP_MAX_DATA_WAIT 5000 //ms to wait for the client to send the request
...
...
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