File tree 1 file changed +3
-3
lines changed 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -56,7 +56,6 @@ WebServer::WebServer(IPAddress addr, int port)
56
56
, _currentHeaders(nullptr )
57
57
, _contentLength(0 )
58
58
, _chunked(false )
59
- , _corsEnabled(false )
60
59
{
61
60
}
62
61
@@ -78,7 +77,6 @@ WebServer::WebServer(int port)
78
77
, _currentHeaders(nullptr )
79
78
, _contentLength(0 )
80
79
, _chunked(false )
81
- , _corsEnabled(false )
82
80
{
83
81
}
84
82
@@ -304,7 +302,9 @@ void WebServer::handleClient() {
304
302
// Wait for data from client to become available
305
303
if (_currentClient.available ()) {
306
304
if (_parseRequest (_currentClient)) {
307
- _currentClient.setTimeout (HTTP_MAX_SEND_WAIT);
305
+ // because HTTP_MAX_SEND_WAIT is expressed in milliseconds,
306
+ // it must be divided by 1000
307
+ _currentClient.setTimeout (HTTP_MAX_SEND_WAIT / 1000 );
308
308
_contentLength = CONTENT_LENGTH_NOT_SET;
309
309
_handleRequest ();
310
310
You can’t perform that action at this time.
0 commit comments