Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit d6b383f

Browse filesBrowse files
authored
Merge pull request espressif#4429 from Bmooij/feature/Add_flash_helper_constructor_to_Uri
Add flash helper constructor to Uri
2 parents cadbad8 + ae240a3 commit d6b383f
Copy full SHA for d6b383f

File tree

Expand file treeCollapse file tree

2 files changed

+2
-1
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+2
-1
lines changed

‎libraries/WebServer/examples/PathArgServer/PathArgServer.ino

Copy file name to clipboardExpand all lines: libraries/WebServer/examples/PathArgServer/PathArgServer.ino
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ void setup(void) {
3232
Serial.println("MDNS responder started");
3333
}
3434

35-
server.on("/", []() {
35+
server.on(F("/"), []() {
3636
server.send(200, "text/plain", "hello from esp32!");
3737
});
3838

‎libraries/WebServer/src/Uri.h

Copy file name to clipboardExpand all lines: libraries/WebServer/src/Uri.h
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ class Uri {
1212
public:
1313
Uri(const char *uri) : _uri(uri) {}
1414
Uri(const String &uri) : _uri(uri) {}
15+
Uri(const __FlashStringHelper *uri) : _uri(String(uri)) {}
1516
virtual ~Uri() {}
1617

1718
virtual Uri* clone() const {

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.