Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | When the request URI for static content contains extra path elements, report the error as 404 instead of 301. |
---|---|
Downloads: | Tarball | ZIP archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
155df5701cde6d4af8682812366a5b8e |
User & Date: | drh 2013-12-16 21:42:57.296 |
Context
2013-12-17
| ||
16:33 | Documentation for the printf() SQL function. (check-in: 9cbe2e4d08 user: drh tags: trunk) | |
2013-12-16
| ||
21:42 | When the request URI for static content contains extra path elements, report the error as 404 instead of 301. (check-in: 155df5701c user: drh tags: trunk) | |
21:30 | In althttpd, keep track of wall-clock time in milliseconds, not seconds. And for the user and system times, be sure to subtract out the user and system times for prior requests on the same connection. (check-in: 333c090d36 user: drh tags: trunk) | |
Changes
Changes to misc/althttpd.c.
︙ | ︙ | |||
1471 1472 1473 1474 1475 1476 1477 | if( useTimeout ) alarm(60*5); while( (c = getc(in))!=EOF ){ putc(c,stdout); nOut++; } fclose(in); }else if( countSlashes(zRealScript)!=countSlashes(zScript) ){ | | < < < < < < < < < < < | < < | | 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 | if( useTimeout ) alarm(60*5); while( (c = getc(in))!=EOF ){ putc(c,stdout); nOut++; } fclose(in); }else if( countSlashes(zRealScript)!=countSlashes(zScript) ){ /* If the request URI for static content contains material past the ** actual content file name, report that as a 404 error. */ NotFound(__LINE__); }else{ /* If it isn't executable then it ** must a simple file that needs to be copied to output. */ const char *zContentType = GetMimeType(zFile, lenFile); if( zTmpNam ) unlink(zTmpNam); |
︙ | ︙ |