[libsoup] soup-multipart: don't use Content-Transfer-Encoding in multipart/form-data
- From: Dan Winship <danw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libsoup] soup-multipart: don't use Content-Transfer-Encoding in multipart/form-data
- Date: Fri, 9 Apr 2010 23:53:13 +0000 (UTC)
commit d557ea0359301beb62c194ddb4a0222512cae842
Author: Dan Winship <danw gnome org>
Date: Tue Apr 6 12:42:33 2010 -0400
soup-multipart: don't use Content-Transfer-Encoding in multipart/form-data
The HTML 4.01 spec says you have to, but apparently no one else does,
and it confuses some servers.
https://bugzilla.gnome.org/show_bug.cgi?id=614198
libsoup/soup-multipart.c | 14 --------------
1 files changed, 0 insertions(+), 14 deletions(-)
---
diff --git a/libsoup/soup-multipart.c b/libsoup/soup-multipart.c
index 9223f1d..45deed6 100644
--- a/libsoup/soup-multipart.c
+++ b/libsoup/soup-multipart.c
@@ -385,20 +385,6 @@ soup_multipart_append_form_file (SoupMultipart *multipart,
content_type);
}
- /* The HTML spec says we need to set Content-Transfer-Encoding
- * if the data is not 7bit. It probably doesn't actually
- * matter...
- */
- if (content_type && strncmp (content_type, "text/", 5) != 0) {
- soup_message_headers_append (headers,
- "Content-Transfer-Encoding",
- "binary");
- } else {
- soup_message_headers_append (headers,
- "Content-Transfer-Encoding",
- "8bit");
- }
-
g_ptr_array_add (multipart->headers, headers);
g_ptr_array_add (multipart->bodies, soup_buffer_copy (body));
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]