Fossil

Check-in [0a14f18111]
Login

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

Overview
Comment:Return a proper error message if the first line of an HTTP requested handed to the "http" command is blank.
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 0a14f18111c9ea0b94f43026c2d4f2d61de79b80
User & Date: drh 2008-05-14 12:21:23.000
Context
2008-05-14
19:51
added command: wiki [export WikiName|list] ... (check-in: 5fb1152dab user: stephan tags: trunk)
12:21
Return a proper error message if the first line of an HTTP requested handed to the "http" command is blank. ... (check-in: 0a14f18111 user: drh tags: trunk)
02:03
Change the spelling of "descendant" to use the -ant suffix everywhere, including in the filename "descendant.c". The adjective form can be spelled either -ant or -ent, but the noun form requires -ant, or so says American Heritage. ... (check-in: 6458f020fc user: drh tags: trunk)
Changes
Unified Diff Ignore Whitespace Patch
Changes to src/cgi.c.
81
82
83
84
85
86
87
88
89

90
91
92
93
94
95
96
** produced in order.  Parts of the header might be built after all or
** part of the body.  The header and body are accumulated in separate
** Blob structures then output sequentially once everything has been
** built.
**
** The cgi_destination() interface switch between the buffers.
*/
static Blob *pContent;
static Blob cgiContent[2] = { BLOB_INITIALIZER, BLOB_INITIALIZER };


/*
** Set the destination buffer into which to accumulate CGI content.
*/
void cgi_destination(int dest){
  switch( dest ){
    case CGI_HEADER: {







<

>







81
82
83
84
85
86
87

88
89
90
91
92
93
94
95
96
** produced in order.  Parts of the header might be built after all or
** part of the body.  The header and body are accumulated in separate
** Blob structures then output sequentially once everything has been
** built.
**
** The cgi_destination() interface switch between the buffers.
*/

static Blob cgiContent[2] = { BLOB_INITIALIZER, BLOB_INITIALIZER };
static Blob *pContent = &cgiContent[0];

/*
** Set the destination buffer into which to accumulate CGI content.
*/
void cgi_destination(int dest){
  switch( dest ){
    case CGI_HEADER: {