@@ -103,7 +103,7 @@ void setup() {
103
103
// curl -v -X POST -H "Content-Type: application/json" -d '{"game": "test"}' http://192.168.4.1/delay
104
104
//
105
105
server.onNotFound ([](AsyncWebServerRequest *request) {
106
- requests++ ;
106
+ requests = requests + 1 ;
107
107
if (request->url () == " /delay" ) {
108
108
request->send (200 , " application/json" , " {\" status\" :\" OK\" }" );
109
109
} else {
@@ -125,7 +125,7 @@ void setup() {
125
125
server.on (" /" , HTTP_GET, [](AsyncWebServerRequest *request) {
126
126
// need to cast to uint8_t*
127
127
// if you do not, the const char* will be copied in a temporary String buffer
128
- requests++ ;
128
+ requests = requests + 1 ;
129
129
request->send (200 , " text/html" , (uint8_t *)htmlContent, htmlContentLength);
130
130
});
131
131
@@ -143,7 +143,7 @@ void setup() {
143
143
// time curl -N -v -G -d 'd=2000' -d 'l=10000' http://192.168.4.1/slow.html --output -
144
144
//
145
145
server.on (" /slow.html" , HTTP_GET, [](AsyncWebServerRequest *request) {
146
- requests++ ;
146
+ requests = requests + 1 ;
147
147
uint32_t d = request->getParam (" d" )->value ().toInt ();
148
148
uint32_t l = request->getParam (" l" )->value ().toInt ();
149
149
Serial.printf (" d = %" PRIu32 " , l = %" PRIu32 " \n " , d, l);
0 commit comments