]> granicus.if.org Git - curl/commitdiff
removed the header that confuses PHP
authorDaniel Stenberg <daniel@haxx.se>
Mon, 9 Oct 2000 22:29:35 +0000 (22:29 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 9 Oct 2000 22:29:35 +0000 (22:29 +0000)
lib/formdata.c

index 11d459382bd471ccc8c8a29f11cd0b3bb0bd0ceb..1e15f3ce41e77e067ca996d0376ad12c4fecee28 100644 (file)
@@ -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);