1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-07-23 08:45:22 +03:00

Avoid #includes with a surrounding namespace (#7560)

untangle the namespace/double inclusions in webserver library.
This is a followup of the discussion in
https://github.com/esp8266/Arduino/pull/6946#discussion_r361582525
This commit is contained in:
Dirk Mueller
2020-09-17 15:35:27 +02:00
committed by GitHub
parent e5c84c9503
commit 32470fbfab
5 changed files with 20 additions and 4 deletions

View File

@ -32,6 +32,8 @@
static const char Content_Type[] PROGMEM = "Content-Type";
static const char filename[] PROGMEM = "filename";
namespace esp8266webserver {
template <typename ServerType>
static bool readBytesWithTimeout(typename ServerType::ClientType& client, size_t maxLength, String& data, int timeout_ms)
{
@ -578,3 +580,5 @@ bool ESP8266WebServerTemplate<ServerType>::_parseFormUploadAborted(){
_currentHandler->upload(*this, _currentUri, *_currentUpload);
return false;
}
} // namespace