Differences From:
File
src/cgi.c
part of check-in
[5b61ad3a4c]
- Add a missing semicolon to the previous checkin.
by
drh on
2008-05-29 14:38:13.
[view]
To:
File
src/cgi.c
part of check-in
[dcc48662f8]
- Better error messages when trying to run "fossil ui" with an invalid
or unaccessible repository.
by
drh on
2008-06-08 15:45:36.
[view]
@@ -154,9 +154,8 @@
static char *zContentType = "text/html"; /* Content type of the reply */
static char *zReplyStatus = "OK"; /* Reply status description */
static int iReplyStatus = 200; /* Reply status code */
static Blob extraHeader = BLOB_INITIALIZER; /* Extra header text */
-static int fullHttpReply = 0; /* True for a full-blown HTTP header */
/*
** Set the reply content type
*/
@@ -286,9 +285,9 @@
zReplyStatus = "Not Modified";
}
#endif
- if( fullHttpReply ){
+ if( g.fullHttpReply ){
fprintf(g.httpOut, "HTTP/1.0 %d %s\r\n", iReplyStatus, zReplyStatus);
fprintf(g.httpOut, "Date: %s\r\n", cgi_rfc822_datestamp(time(0)));
fprintf(g.httpOut, "Connection: close\r\n");
}else{
@@ -1092,9 +1091,9 @@
struct sockaddr_in remoteName;
size_t size = sizeof(struct sockaddr_in);
char zLine[2000]; /* A single line of input. */
- fullHttpReply = 1;
+ g.fullHttpReply = 1;
if( fgets(zLine, sizeof(zLine),g.httpIn)==0 ){
malformed_request();
}
zToken = extract_token(zLine, &z);