mirror of
https://github.com/espressif/esp-idf.git
synced 2025-11-28 21:29:50 +01:00
httpd_resp_send: use HTTPD_RESP_USE_STRLEN when possible
This commit is contained in:
committed by
bot
parent
f29370b02c
commit
6673407f98
@@ -451,7 +451,7 @@ esp_err_t httpd_resp_send_err(httpd_req_t *req, httpd_err_code_t error, const ch
|
||||
#endif
|
||||
|
||||
/* Send HTTP error message */
|
||||
ret = httpd_resp_send(req, msg, strlen(msg));
|
||||
ret = httpd_resp_send(req, msg, HTTPD_RESP_USE_STRLEN);
|
||||
|
||||
#ifdef CONFIG_HTTPD_ERR_RESP_NO_DELAY
|
||||
/* If TCP_NODELAY was set successfully above, time to disable it */
|
||||
|
||||
Reference in New Issue
Block a user