Disabled chunked transfer encoding for 204 responses.
This commit is contained in:
@@ -967,7 +967,8 @@ nxt_h1p_request_header_send(nxt_task_t *task, nxt_http_request_t *r)
|
||||
http11 = (h1p->parser.version.s.minor != '0');
|
||||
|
||||
if (r->resp.content_length == NULL || r->resp.content_length->skip) {
|
||||
if (http11) {
|
||||
|
||||
if (http11 && n != NXT_HTTP_NO_CONTENT) {
|
||||
h1p->chunked = 1;
|
||||
size += nxt_length(chunked);
|
||||
/* Trailing CRLF will be added by the first chunk header. */
|
||||
|
||||
Reference in New Issue
Block a user