1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-06-06 05:21:22 +03:00

fix static handler

This commit is contained in:
Me No Dev 2015-11-21 21:04:07 +02:00
parent 0063d80c74
commit 94a7f63cda

View File

@ -70,9 +70,6 @@ public:
if (!requestUri.startsWith(_uri))
return false;
if (requestUri != _uri)
return false;
return true;
}
@ -91,6 +88,11 @@ public:
// URI in request to get the file path.
path += requestUri.substring(_baseUriLength);
}
else if (requestUri != _uri) {
// Base URI points to a file but request doesn't match this URI exactly
return false;
}
DEBUGV("StaticRequestHandler::handle: path=%s, isFile=%d\r\n", path.c_str(), _isFile);
String contentType = getContentType(path);