about summary refs log tree commit diff stats
path: root/src/LYCgi.c
diff options
context:
space:
mode:
authorThomas E. Dickey <dickey@invisible-island.net>1998-01-22 12:03:56 -0500
committerThomas E. Dickey <dickey@invisible-island.net>1998-01-22 12:03:56 -0500
commitab8b1f12eaf6b1524439f4a277cb7d122068acd7 (patch)
tree1b9a5ed17066e83f22164e8394a6aeea821b2792 /src/LYCgi.c
parente38e34bfb6683c78cec7b217fc30b71874f756f4 (diff)
downloadlynx-snapshots-ab8b1f12eaf6b1524439f4a277cb7d122068acd7.tar.gz
snapshot of project "lynx", label v2-7-1ac_0-110
Diffstat (limited to 'src/LYCgi.c')
-rw-r--r--src/LYCgi.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/LYCgi.c b/src/LYCgi.c
index 6bb32a34..23b65861 100644
--- a/src/LYCgi.c
+++ b/src/LYCgi.c
@@ -473,6 +473,14 @@ PRIVATE int LYLoadCGI ARGS4(
 		    add_environment_value(cp);
 		}
 
+		if (anAnchor->post_data &&
+		    anAnchor->post_content_type) {
+		    cp = NULL;
+		    StrAllocCopy(cp, "CONTENT_TYPE=");
+		    StrAllocCat(cp, anAnchor->post_content_type);
+		    add_environment_value(cp);
+		}
+
 		if (anAnchor->post_data) { /* post script, read stdin */
 		    close(fd1[1]);
 		    dup2(fd1[0], fileno(stdin));