diff options
author | Thomas E. Dickey <dickey@invisible-island.net> | 1998-01-22 12:03:56 -0500 |
---|---|---|
committer | Thomas E. Dickey <dickey@invisible-island.net> | 1998-01-22 12:03:56 -0500 |
commit | ab8b1f12eaf6b1524439f4a277cb7d122068acd7 (patch) | |
tree | 1b9a5ed17066e83f22164e8394a6aeea821b2792 /src/LYCgi.c | |
parent | e38e34bfb6683c78cec7b217fc30b71874f756f4 (diff) | |
download | lynx-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.c | 8 |
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)); |