Code

src/utils_cgi.c: Print a "X-Generator" message in the HTTP header.
authorFlorian Forster <ff@octo.it>
Sun, 27 Jun 2010 11:57:17 +0000 (13:57 +0200)
committerFlorian Forster <octo@leeloo.lan.home.verplant.org>
Sun, 27 Jun 2010 11:57:17 +0000 (13:57 +0200)
src/utils_cgi.c

index 96b1b82e7a8a9f93684ab0bfd5970f51fbd87701..ed4c4468861e89dcac5a75cfe1a08f8448f59868 100644 (file)
@@ -1,3 +1,5 @@
+#include "config.h"
+
 #include <stdlib.h>
 #include <stdio.h>
 #include <string.h>
@@ -549,7 +551,9 @@ int html_print_page (const char *title, /* {{{ */
 {
   char *title_html;
 
-  printf ("Content-Type: text/html\n\n");
+  printf ("Content-Type: text/html\n"
+      "X-Generator: "PACKAGE_STRING"\n"
+      "\n\n");
 
   if (title == NULL)
     title = "c4: collection4 graph interface";