--- a/src/server/daemon/protocol.c Tue Jan 01 19:22:56 2013 +0100 +++ b/src/server/daemon/protocol.c Wed Jan 02 16:03:50 2013 +0100 @@ -248,7 +248,7 @@ for(int i=0;i<h->hsize;i++) { p = h->ht[i]; - while(p != NULL) { + while(p != NULL) { /* from http.cpp */ const pb_key *key = PARAM_KEY(p->param); if (key == pb_key_status || key == pb_key_server || key == pb_key_date) { @@ -262,6 +262,7 @@ char *value = p->param->value; /* make first char of name uppercase */ + // TODO: don't modify the headers if(name[0] > 90) { name[0] -= 32; } @@ -288,7 +289,7 @@ flags = fcntl(fd, F_GETFL, 0); fcntl(fd, F_SETFL, flags ^ O_NONBLOCK); - /* iovec output buffer */ + /* output buffer */ sbuf_t *out = sbuf_new(512); /* add the http status line to the output buffer */