From 111d1d09d3f9e6cea3ec89fadc028dd75b8a7b98 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Mon, 9 Oct 2000 22:29:35 +0000 Subject: removed the header that confuses PHP --- lib/formdata.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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); -- cgit v1.2.3