mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-01 00:38:31 +00:00
Make chacha20 go faster
This commit is contained in:
parent
c0bec24fa2
commit
0ecd71f697
7 changed files with 232 additions and 309 deletions
|
@ -5054,11 +5054,13 @@ static char *HandleRequest(void) {
|
|||
!IsAcceptablePath(url.path.p, url.path.n) ||
|
||||
!IsAcceptableHost(url.host.p, url.host.n) ||
|
||||
!IsAcceptablePort(url.port.p, url.port.n)) {
|
||||
free(url.params.p);
|
||||
LockInc(&shared->c.urisrefused);
|
||||
return ServeFailure(400, "Bad URI");
|
||||
}
|
||||
if (HasHeader(kHttpUpgradeInsecureRequests) && !usessl &&
|
||||
upgradeinsecurerequests && (p = SendHttpsRedirect())) {
|
||||
free(url.params.p);
|
||||
return p;
|
||||
}
|
||||
LOGF("RECEIVED %s HTTP%02d %.*s %s %`'.*s %`'.*s", DescribeClient(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue