diff options
author | Daniel Stenberg <daniel@haxx.se> | 2000-10-09 22:29:35 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2000-10-09 22:29:35 +0000 |
commit | 111d1d09d3f9e6cea3ec89fadc028dd75b8a7b98 (patch) | |
tree | 5f0cedc0d2683acdb54414954676da4554be79a8 | |
parent | 4f5a4c9bd517ec9aab8e62e221f962e9f2323cac (diff) |
removed the header that confuses PHP
-rw-r--r-- | lib/formdata.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/lib/formdata.c b/lib/formdata.c index 11d459382..1e15f3ce4 100644 --- a/lib/formdata.c +++ b/lib/formdata.c @@ -463,12 +463,20 @@ struct FormData *getFormData(struct HttpPost *post, "\r\nContent-Type: %s", file->contenttype); } + +#if 0 + /* The header Content-Transfer-Encoding: seems to confuse some receivers + * (like the built-in PHP engine). While I can't see any reason why it + * should, I can just as well skip this to the benefit of the users who + * are using such confused receivers. + */ + if(file->contenttype && !strnequal("text/", file->contenttype, 5)) { /* this is not a text content, mention our binary encoding */ size += AddFormData(&form, "\r\nContent-Transfer-Encoding: binary", 0); } - +#endif size += AddFormData(&form, "\r\n\r\n", 0); |