Fossil SCM

Return a proper error message if the first line of an HTTP requested handed to the "http" command is blank.

drh 2008-05-14 12:21 trunk
Commit 0a14f18111c9ea0b94f43026c2d4f2d61de79b80
1 file changed +1 -1
+1 -1
--- src/cgi.c
+++ src/cgi.c
@@ -83,12 +83,12 @@
8383
** Blob structures then output sequentially once everything has been
8484
** built.
8585
**
8686
** The cgi_destination() interface switch between the buffers.
8787
*/
88
-static Blob *pContent;
8988
static Blob cgiContent[2] = { BLOB_INITIALIZER, BLOB_INITIALIZER };
89
+static Blob *pContent = &cgiContent[0];
9090
9191
/*
9292
** Set the destination buffer into which to accumulate CGI content.
9393
*/
9494
void cgi_destination(int dest){
9595
--- src/cgi.c
+++ src/cgi.c
@@ -83,12 +83,12 @@
83 ** Blob structures then output sequentially once everything has been
84 ** built.
85 **
86 ** The cgi_destination() interface switch between the buffers.
87 */
88 static Blob *pContent;
89 static Blob cgiContent[2] = { BLOB_INITIALIZER, BLOB_INITIALIZER };
 
90
91 /*
92 ** Set the destination buffer into which to accumulate CGI content.
93 */
94 void cgi_destination(int dest){
95
--- src/cgi.c
+++ src/cgi.c
@@ -83,12 +83,12 @@
83 ** Blob structures then output sequentially once everything has been
84 ** built.
85 **
86 ** The cgi_destination() interface switch between the buffers.
87 */
 
88 static Blob cgiContent[2] = { BLOB_INITIALIZER, BLOB_INITIALIZER };
89 static Blob *pContent = &cgiContent[0];
90
91 /*
92 ** Set the destination buffer into which to accumulate CGI content.
93 */
94 void cgi_destination(int dest){
95

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button