commit 7ce742f1315b0e8d43a8b2d55f553fdbf4d68914
parent d3e37881621e2d85893e30c104b281087de1df09
Author: Joris Vink <joris@coders.se>
Date: Wed, 13 May 2015 09:02:58 +0200
Merge pull request #48 from thorduri/content-length
Always write out content-length;
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/http.c b/src/http.c
@@ -1266,7 +1266,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);