mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-24 14:22:28 +00:00
Add fixes performance and static web server
This commit is contained in:
parent
b6793d42d5
commit
c45e46f871
108 changed files with 2927 additions and 819 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue