mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
Fixed syntax error in esp_http_server.rst
Changed the "const char[] name" into "const char name[]", so now the code doesn't produce the "expected identifier or '(' before '[' token" error. Closes https://github.com/espressif/esp-idf/pull/3940
This commit is contained in:
parent
02c7c3885e
commit
b7e73025fe
@ -22,7 +22,7 @@ Application Example
|
|||||||
esp_err_t get_handler(httpd_req_t *req)
|
esp_err_t get_handler(httpd_req_t *req)
|
||||||
{
|
{
|
||||||
/* Send a simple response */
|
/* Send a simple response */
|
||||||
const char[] resp = "URI GET Response";
|
const char resp[] = "URI GET Response";
|
||||||
httpd_resp_send(req, resp, strlen(resp));
|
httpd_resp_send(req, resp, strlen(resp));
|
||||||
return ESP_OK;
|
return ESP_OK;
|
||||||
}
|
}
|
||||||
@ -55,7 +55,7 @@ Application Example
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Send a simple response */
|
/* Send a simple response */
|
||||||
const char[] resp = "URI POST Response";
|
const char resp[] = "URI POST Response";
|
||||||
httpd_resp_send(req, resp, strlen(resp));
|
httpd_resp_send(req, resp, strlen(resp));
|
||||||
return ESP_OK;
|
return ESP_OK;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user