mirror of
https://github.com/DCC-EX/CommandStation-EX.git
synced 2024-11-27 01:56:14 +01:00
Update WifiInterface.cpp
This commit is contained in:
parent
47a4d2dae9
commit
9ebe4ad834
|
@ -146,14 +146,14 @@ void WifiInterface::loop(Stream & wifiStream) {
|
||||||
// We know that parser will read the entire buffer before starting to write to it.
|
// We know that parser will read the entire buffer before starting to write to it.
|
||||||
// Otherwise we would have to copy the buffer elsewhere and RAM is in short supply.
|
// Otherwise we would have to copy the buffer elsewhere and RAM is in short supply.
|
||||||
|
|
||||||
// TODO ... tell JMRI parser that callbacks are diallowed because we dont want to handle the async
|
|
||||||
bool closeAfter=false;
|
bool closeAfter=false;
|
||||||
// Intercept HTTP requests
|
// Intercept HTTP requests
|
||||||
if (isHTML()) {
|
if (isHTML()) {
|
||||||
HTTPParser::parse(streamer,buffer);
|
HTTPParser::parse(streamer,buffer);
|
||||||
closeAfter=true;
|
closeAfter=true;
|
||||||
}
|
}
|
||||||
else if (buffer[0]=='<') parser.parse(streamer,buffer);
|
else if (buffer[0]=='<') parser.parse(streamer,buffer, true); // tell JMRI parser that callbacks are diallowed because we dont want to handle the async
|
||||||
|
|
||||||
else WiThrottle::getThrottle(streamer, connectionId)->parse(streamer, buffer);
|
else WiThrottle::getThrottle(streamer, connectionId)->parse(streamer, buffer);
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user