mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-02 20:24:32 +02:00
Merge branch 'bugfix/fix_code_snippet_in_http_server_docs' into 'master'
Fixed syntax error in esp_http_server.rst See merge request espressif/esp-idf!5844
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user