Diff
Not logged in

Differences From:

File src/cgi.c part of check-in [36edf3fd5c] - Populate the ipaddr column of the rcvfrom table when a file is received from a remote source (push/pull/sync). by dan on 2007-08-01 09:04:46. Also file src/cgi.c part of check-in [04f7535ee3] - The merge at dd9633a03d did not work because of the bug just fixed. This change moves the changes that should have been in that merge into the main line of the tree. by drh on 2007-08-01 12:20:24. [view]

To:

File src/cgi.c part of check-in [6dab6149b1] - From the vinfo webpage, provide a hyperlink to download a ZIP archive the version. by drh on 2007-08-01 13:32:11. [view]

@@ -100,8 +100,17 @@
 ** Set the reply content type
 */
 void cgi_set_content_type(const char *zType){
   zContentType = mprintf("%s", zType);
+}
+
+/*
+** Set the reply content to the specified BLOB.
+*/
+void cgi_set_content(Blob *pNewContent){
+  blob_reset(&cgiContent);
+  cgiContent = *pNewContent;
+  blob_zero(pNewContent);
 }
 
 /*
 ** Set the reply status code