@@ -103,7 +103,7 @@ void setup() {
103103 // curl -v -X POST -H "Content-Type: application/json" -d '{"game": "test"}' http://192.168.4.1/delay
104104 //
105105 server.onNotFound ([](AsyncWebServerRequest *request) {
106- requests++ ;
106+ requests = requests + 1 ;
107107 if (request->url () == " /delay" ) {
108108 request->send (200 , " application/json" , " {\" status\" :\" OK\" }" );
109109 } else {
@@ -125,7 +125,7 @@ void setup() {
125125 server.on (" /" , HTTP_GET, [](AsyncWebServerRequest *request) {
126126 // need to cast to uint8_t*
127127 // if you do not, the const char* will be copied in a temporary String buffer
128- requests++ ;
128+ requests = requests + 1 ;
129129 request->send (200 , " text/html" , (uint8_t *)htmlContent, htmlContentLength);
130130 });
131131
@@ -143,7 +143,7 @@ void setup() {
143143 // time curl -N -v -G -d 'd=2000' -d 'l=10000' http://192.168.4.1/slow.html --output -
144144 //
145145 server.on (" /slow.html" , HTTP_GET, [](AsyncWebServerRequest *request) {
146- requests++ ;
146+ requests = requests + 1 ;
147147 uint32_t d = request->getParam (" d" )->value ().toInt ();
148148 uint32_t l = request->getParam (" l" )->value ().toInt ();
149149 Serial.printf (" d = %" PRIu32 " , l = %" PRIu32 " \n " , d, l);
0 commit comments