kore

An easy to use, scalable and secure web application framework for writing web APIs in C.
Commits | Files | Refs | README | LICENSE | git clone https://git.kore.io/kore.git

commit c2520b2ebf7a861db6854267c307d2958a9135e7
parent 364dc58219a7ac9608e5f7affc838e002e861939
Author: Joris Vink <joris@coders.se>
Date:   Thu,  2 May 2013 09:25:14 +0200

oops, sending 2 bytes too much.

Diffstat:
src/http.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/http.c b/src/http.c @@ -179,7 +179,7 @@ http_response(struct http_request *req, int status, u_int8_t *d, u_int32_t len) kore_buf_append(buf, (u_int8_t *)sbuf, strlen(sbuf)); } - kore_buf_append(buf, (u_int8_t *)"\r\n\r\n", 4); + kore_buf_append(buf, (u_int8_t *)"\r\n", 2); htext = kore_buf_release(buf, &hlen); if (!net_send_queue(req->owner, htext, hlen, 0, NULL, NULL)) { free(htext);