Add fixes performance and static web server

This commit is contained in:
Justine Tunney 2020-10-05 23:11:49 -07:00
parent b6793d42d5
commit c45e46f871
108 changed files with 2927 additions and 819 deletions

View file

@ -112,7 +112,10 @@ int ParseHttpRequest(struct HttpRequest *req, const char *p, size_t n) {
}
break;
case LF2:
if (c == '\n') return 0;
if (c == '\n') {
req->length = i + 1;
return 0;
}
return ebadmsg();
default:
unreachable;