Fix reorder error in WebServer (#2700)

This commit is contained in:
Nick Hynes 2019-04-23 07:57:33 -07:00 committed by Me No Dev
parent 119ece2b0f
commit 0202ba7c21

View File

@ -39,7 +39,8 @@ static const char Content_Length[] = "Content-Length";
WebServer::WebServer(IPAddress addr, int port) WebServer::WebServer(IPAddress addr, int port)
: _server(addr, port) : _corsEnabled(false)
, _server(addr, port)
, _currentMethod(HTTP_ANY) , _currentMethod(HTTP_ANY)
, _currentVersion(0) , _currentVersion(0)
, _currentStatus(HC_NONE) , _currentStatus(HC_NONE)
@ -55,12 +56,12 @@ WebServer::WebServer(IPAddress addr, int port)
, _currentHeaders(nullptr) , _currentHeaders(nullptr)
, _contentLength(0) , _contentLength(0)
, _chunked(false) , _chunked(false)
, _corsEnabled(false)
{ {
} }
WebServer::WebServer(int port) WebServer::WebServer(int port)
: _server(port) : _corsEnabled(false)
, _server(port)
, _currentMethod(HTTP_ANY) , _currentMethod(HTTP_ANY)
, _currentVersion(0) , _currentVersion(0)
, _currentStatus(HC_NONE) , _currentStatus(HC_NONE)
@ -76,7 +77,6 @@ WebServer::WebServer(int port)
, _currentHeaders(nullptr) , _currentHeaders(nullptr)
, _contentLength(0) , _contentLength(0)
, _chunked(false) , _chunked(false)
, _corsEnabled(false)
{ {
} }