mirror of
https://github.com/esp8266/Arduino.git
synced 2025-09-05 08:04:28 +03:00
Changed header() to have string parameter instead of const char *
This commit is contained in:
@@ -404,7 +404,7 @@ bool ESP8266WebServer::hasArg(String name) {
|
||||
}
|
||||
|
||||
|
||||
String ESP8266WebServer::header(const char* name) {
|
||||
String ESP8266WebServer::header(String name) {
|
||||
for (int i = 0; i < _headerKeysCount; ++i) {
|
||||
if (_currentHeaders[i].key == name)
|
||||
return _currentHeaders[i].value;
|
||||
|
Reference in New Issue
Block a user