Fossil SCM
Return a proper error message if the first line of an HTTP requested handed to the "http" command is blank.
Commit
0a14f18111c9ea0b94f43026c2d4f2d61de79b80
Parent
6458f020fcb1dc2…
1 file changed
+1
-1
+1
-1
| --- src/cgi.c | ||
| +++ src/cgi.c | ||
| @@ -83,12 +83,12 @@ | ||
| 83 | 83 | ** Blob structures then output sequentially once everything has been |
| 84 | 84 | ** built. |
| 85 | 85 | ** |
| 86 | 86 | ** The cgi_destination() interface switch between the buffers. |
| 87 | 87 | */ |
| 88 | -static Blob *pContent; | |
| 89 | 88 | static Blob cgiContent[2] = { BLOB_INITIALIZER, BLOB_INITIALIZER }; |
| 89 | +static Blob *pContent = &cgiContent[0]; | |
| 90 | 90 | |
| 91 | 91 | /* |
| 92 | 92 | ** Set the destination buffer into which to accumulate CGI content. |
| 93 | 93 | */ |
| 94 | 94 | void cgi_destination(int dest){ |
| 95 | 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 *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 |