Allowing keep-alive connections after 204 responses.
This was unintentionally disabled by 7b5026a0bdeb.
This commit is contained in:
@@ -968,11 +968,13 @@ nxt_h1p_request_header_send(nxt_task_t *task, nxt_http_request_t *r)
|
|||||||
|
|
||||||
if (r->resp.content_length == NULL || r->resp.content_length->skip) {
|
if (r->resp.content_length == NULL || r->resp.content_length->skip) {
|
||||||
|
|
||||||
if (http11 && n != NXT_HTTP_NO_CONTENT) {
|
if (http11) {
|
||||||
h1p->chunked = 1;
|
if (n != NXT_HTTP_NO_CONTENT) {
|
||||||
size += nxt_length(chunked);
|
h1p->chunked = 1;
|
||||||
/* Trailing CRLF will be added by the first chunk header. */
|
size += nxt_length(chunked);
|
||||||
size -= nxt_length("\r\n");
|
/* Trailing CRLF will be added by the first chunk header. */
|
||||||
|
size -= nxt_length("\r\n");
|
||||||
|
}
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
h1p->keepalive = 0;
|
h1p->keepalive = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user