Documentation Source Text

Check-in [94b9b95bee]
Login

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

Overview
Comment:Remove an unused variable from althttpd.c.
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 94b9b95bee3f0f6720247b85314d7d9903c1c62bf916c3df8d7900b90aab94c0
User & Date: drh 2018-01-30 23:44:39
Context
2018-02-01
14:44
Merge fixes from the release branch. check-in: 5279eb6057 user: drh tags: trunk
2018-01-30
23:44
Remove an unused variable from althttpd.c. check-in: 94b9b95bee user: drh tags: trunk
17:06
Improved redirect handling in althttpd.c check-in: c4dcea55cd user: drh tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to misc/althttpd.c.

1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617

    /* Read and process the first line of the header returned by the
    ** CGI script.
    */
    if( useTimeout ) alarm(15);
    while( fgets(zLine,sizeof(zLine),in) && !isspace(zLine[0]) ){
      if( strncasecmp(zLine,"Location:",9)==0 ){
        int i;
        StartResponse("302 Redirect");
        RemoveNewline(zLine);
        z = &zLine[10];
        while( isspace(*z) ){ z++; }
        nOut += printf("Location: %s\r\n",z);
      }else if( strncasecmp(zLine,"Status:",7)==0 ){
        int i;







<







1603
1604
1605
1606
1607
1608
1609

1610
1611
1612
1613
1614
1615
1616

    /* Read and process the first line of the header returned by the
    ** CGI script.
    */
    if( useTimeout ) alarm(15);
    while( fgets(zLine,sizeof(zLine),in) && !isspace(zLine[0]) ){
      if( strncasecmp(zLine,"Location:",9)==0 ){

        StartResponse("302 Redirect");
        RemoveNewline(zLine);
        z = &zLine[10];
        while( isspace(*z) ){ z++; }
        nOut += printf("Location: %s\r\n",z);
      }else if( strncasecmp(zLine,"Status:",7)==0 ){
        int i;