We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents cadbad8 + ae240a3 commit d6b383fCopy full SHA for d6b383f
libraries/WebServer/examples/PathArgServer/PathArgServer.ino
@@ -32,7 +32,7 @@ void setup(void) {
32
Serial.println("MDNS responder started");
33
}
34
35
- server.on("/", []() {
+ server.on(F("/"), []() {
36
server.send(200, "text/plain", "hello from esp32!");
37
});
38
libraries/WebServer/src/Uri.h
@@ -12,6 +12,7 @@ class Uri {
12
public:
13
Uri(const char *uri) : _uri(uri) {}
14
Uri(const String &uri) : _uri(uri) {}
15
+ Uri(const __FlashStringHelper *uri) : _uri(String(uri)) {}
16
virtual ~Uri() {}
17
18
virtual Uri* clone() const {
0 commit comments