about summary refs log tree commit diff stats
path: root/src/LYShowInfo.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/LYShowInfo.c')
-rw-r--r--src/LYShowInfo.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/LYShowInfo.c b/src/LYShowInfo.c
index 63bf70dd..4686dc7a 100644
--- a/src/LYShowInfo.c
+++ b/src/LYShowInfo.c
@@ -60,7 +60,8 @@ char *LYVersionDate(void)
  * LYShowInfo prints a page of info about the current file and the link that
  * the cursor is on.
  */
-int LYShowInfo(DocInfo *doc, int size_of_file,
+int LYShowInfo(DocInfo *doc,
+	       int size_of_file,
 	       DocInfo *newdoc,
 	       char *owner_address)
 {
@@ -424,6 +425,13 @@ int LYShowInfo(DocInfo *doc, int size_of_file,
 	} else
 	    fprintf(fp0, "<h2>%s</h2>", gettext("No Links on the current page"));
 
+#ifdef EXP_HTTP_HEADERS
+	if ((cp = HText_getHttpHeaders()) != 0) {
+	    fprintf(fp0, "<h2>%s</h2>", gettext("Server Headers:"));
+	    fprintf(fp0, "<pre>%s</pre>", cp);
+	}
+#endif
+
 #ifdef DIRED_SUPPORT
     }
 #endif /* DIRED_SUPPORT */