projects
/
collection4.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
src/utils_cgi.c: Print a "X-Generator" message in the HTTP header.
[collection4.git]
/
src
/
utils_cgi.c
diff --git
a/src/utils_cgi.c
b/src/utils_cgi.c
index
96b1b82
..
ed4c446
100644
(file)
--- a/
src/utils_cgi.c
+++ b/
src/utils_cgi.c
@@
-1,3
+1,5
@@
+#include "config.h"
+
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
@@
-549,7
+551,9
@@
int html_print_page (const char *title, /* {{{ */
{
char *title_html;
{
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";
if (title == NULL)
title = "c4: collection4 graph interface";