8000 Fixes #614 with incorrect regex in the example sketch (#615) · Rzyq-git/ESPAsyncWebServer@6a1fb03 · GitHub
[go: up one dir, main page]

Skip to content

Commit 6a1fb03

Browse files
frippe75me-no-dev
authored andcommitted
Fixes me-no-dev#614 with incorrect regex in the example sketch (me-no-dev#615)
1 parent 83f6b96 commit 6a1fb03
< 8000 div class="d-none">

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/regex_patterns/regex_patterns.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ void setup() {
5050
});
5151

5252
// Send a GET request to <IP>/sensor/<number>/action/<action>
53-
server.on("^\\/sensor\\/([0-9]+)\\/action\//([a-zA-Z0-9]+)$", HTTP_GET, [] (AsyncWebServerRequest *request) {
53+
server.on("^\\/sensor\\/([0-9]+)\\/action\\/([a-zA-Z0-9]+)$", HTTP_GET, [] (AsyncWebServerRequest *request) {
5454
String sensorNumber = request->pathArg(0);
5555
String action = request->pathArg(1);
5656
request->send(200, "text/plain", "Hello, sensor: " + sensorNumber + ", with action: " + action);

0 commit comments

Comments
 (0)
0