Always write out content-length;

Unless status is 204 or 1xx (informational).
This commit is contained in:
Thordur Bjornsson 2015-05-12 20:19:43 +02:00
parent 603e353eab
commit a62bce3e88

View File

@ -1264,7 +1264,7 @@ http_response_normal(struct http_request *req, struct connection *c,
}
}
if (len > 0)
if (status != 204 && 99 < status && status < 200)
kore_buf_appendf(header_buf, "content-length: %d\r\n", len);
kore_buf_append(header_buf, "\r\n", 2);