Althttpd

Check-in [fded041a3e]
Login

Check-in [fded041a3e]

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Reset the content length for every HTTP request.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: fded041a3e9ce9b0d64de610dcb319957a7194415cc7dbe6e4d12a26e2c3946c
User & Date: drh 2022-01-26 14:21:23
Context
2022-02-01
04:05
docker build: doc typo fix and use alpine:edge version. ... (check-in: 6198014aec user: stephan tags: trunk)
2022-01-26
14:21
Reset the content length for every HTTP request. ... (check-in: fded041a3e user: drh tags: trunk)
2022-01-25
15:43
Do not log an error if the first line of an HTTP request never arrives. ... (check-in: 97b589c68b user: drh tags: trunk)
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to althttpd.c.

2287
2288
2289
2290
2291
2292
2293

2294
2295
2296
2297
2298
2299
2300
  */
  zCookie = 0;
  zAuthType = 0;
  zRemoteUser = 0;
  zReferer = 0;
  zIfNoneMatch = 0;
  zIfModifiedSince = 0;

  rangeEnd = 0;
  while( althttpd_fgets(zLine,sizeof(zLine),stdin) ){
    char *zFieldName;
    char *zVal;

#ifdef LOG_HEADER
    if( hdrLog ) fprintf(hdrLog, "%s", zLine);







>







2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
  */
  zCookie = 0;
  zAuthType = 0;
  zRemoteUser = 0;
  zReferer = 0;
  zIfNoneMatch = 0;
  zIfModifiedSince = 0;
  zContentLength = 0;
  rangeEnd = 0;
  while( althttpd_fgets(zLine,sizeof(zLine),stdin) ){
    char *zFieldName;
    char *zVal;

#ifdef LOG_HEADER
    if( hdrLog ) fprintf(hdrLog, "%s", zLine);