Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | Add "/index" to the list of known index/home pages/CGIs, per /chat discussion. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
d59cf0a83eed61b090fa9578cceee6ba |
User & Date: | stephan 2022-01-15 14:54:58 |
Context
2022-01-15
| ||
15:21 | Remove the forceClose=1 from ProcessOneRequest() in TLS mode (seems to have no effect). Call Malfunction() if tls_read_server() has a read error. ... (check-in: ef1ffc3607 user: stephan tags: trunk) | |
14:54 | Add "/index" to the list of known index/home pages/CGIs, per /chat discussion. ... (check-in: d59cf0a83e user: stephan tags: trunk) | |
14:42 | Omit the --tls flag. Achieve the same functionality using "--cert builtin". ... (check-in: e3659060a9 user: drh tags: trunk) | |
Changes
Changes to althttpd.c.
︙ | ︙ | |||
2600 2601 2602 2603 2604 2605 2606 | if( access(zLine,R_OK) ){ NotFound(390); /* LOG: File not readable */ } zRealScript = StrDup(&zLine[j0]); break; } if( zScript[i]==0 || zScript[i+1]==0 ){ | | | 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 | if( access(zLine,R_OK) ){ NotFound(390); /* LOG: File not readable */ } zRealScript = StrDup(&zLine[j0]); break; } if( zScript[i]==0 || zScript[i+1]==0 ){ static const char *azIndex[] = { "/home", "/index", "/index.html", "/index.cgi" }; int k = j>0 && zLine[j-1]=='/' ? j-1 : j; unsigned int jj; for(jj=0; jj<sizeof(azIndex)/sizeof(azIndex[0]); jj++){ strcpy(&zLine[k],azIndex[jj]); if( stat(zLine,&statbuf)!=0 ) continue; if( !S_ISREG(statbuf.st_mode) ) continue; if( access(zLine,R_OK) ) continue; |
︙ | ︙ |