Adding path arguments to WebServer (#1994)

This commit is contained in:
Bob
2018-11-19 17:00:52 +01:00
committed by Me No Dev
parent f9d1b24c01
commit 3902aa4019
5 changed files with 113 additions and 3 deletions

View File

@ -509,6 +509,11 @@ void WebServer::_streamFileCore(const size_t fileSize, const String & fileName,
send(200, contentType, "");
}
String WebServer::pathArg(unsigned int i) {
if (_currentHandler != nullptr)
return _currentHandler->pathArg(i);
return "";
}
String WebServer::arg(String name) {
for (int j = 0; j < _postArgsLen; ++j) {