about summary refs log tree commit diff stats
path: root/src/LYShowInfo.c
diff options
context:
space:
mode:
authorThomas E. Dickey <dickey@invisible-island.net>2004-07-01 00:09:10 -0400
committerThomas E. Dickey <dickey@invisible-island.net>2004-07-01 00:09:10 -0400
commitceb4156db8546c98875607dd91a799101b02c22f (patch)
tree23470c5e32d7f12c3346806358dcb2503d2ce282 /src/LYShowInfo.c
parent06cddc6badf9b4a4791361cfbeffc5b1e2d2d6a6 (diff)
downloadlynx-snapshots-ceb4156db8546c98875607dd91a799101b02c22f.tar.gz
snapshot of project "lynx", label v2-8-6dev_5
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 */