Skip to content

Commit 950745e

Browse files
author
michael
committed
add ESP8266WebServerTemplate<ServerType>::enableCORS(bool _ec) like ESP32 arduino plateform corrections
1 parent 002238b commit 950745e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libraries/ESP8266WebServer/src/ESP8266WebServer.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ class ESP8266WebServerTemplate
9999
void serveStatic(const char* uri, fs::FS& fs, const char* path, const char* cache_header = NULL );
100100
void onNotFound(THandlerFunction fn); //called when handler is not assigned
101101
void onFileUpload(THandlerFunction fn); //handle file uploads
102-
void enableCORS(bool _ec);
102+
void enableCORS(bool enable);
103103

104104
const String& uri() const { return _currentUri; }
105105
HTTPMethod method() const { return _currentMethod; }
@@ -246,7 +246,7 @@ class ESP8266WebServerTemplate
246246
String _hostHeader;
247247
bool _chunked;
248248
bool _corsEnabled;
249-
249+
250250
String _snonce; // Store noance and opaque for future comparison
251251
String _sopaque;
252252
String _srealm; // Store the Auth realm between Calls

0 commit comments

Comments
 (0)