Remove Content-Length from chunked encoding
Content-Length header should not be included when using chunked encoding. Some browsers will close the socket after seeing the 0 sized response instead of reading the chunks. Merges https://github.com/espressif/esp-idf/pull/2458
This commit is contained in:
parent
221eced06d
commit
f4e867a148
1 changed files with 1 additions and 1 deletions
|
@ -296,7 +296,7 @@ esp_err_t httpd_resp_send_chunk(httpd_req_t *r, const char *buf, size_t buf_len)
|
|||
}
|
||||
|
||||
struct httpd_req_aux *ra = r->aux;
|
||||
const char *httpd_chunked_hdr_str = "HTTP/1.1 %s\r\nContent-Type: %s\r\nContent-Length: 0\r\nTransfer-Encoding: chunked\r\n";
|
||||
const char *httpd_chunked_hdr_str = "HTTP/1.1 %s\r\nContent-Type: %s\r\nTransfer-Encoding: chunked\r\n";
|
||||
const char *colon_separator = ": ";
|
||||
const char *cr_lf_seperator = "\r\n";
|
||||
|
||||
|
|
Loading…
Reference in a new issue