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:
@ -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
|
||||
|
Reference in New Issue
Block a user