soup-multipart: Fix generation of Content-Disposition for broken servers
authorDan Winship <danw@gnome.org>
Mon, 4 Apr 2011 17:21:16 +0000 (13:21 -0400)
committerDan Winship <danw@gnome.org>
Thu, 7 Apr 2011 12:36:07 +0000 (08:36 -0400)
commit429ae942574c9f62938ad77eebe70aed0500b665
tree100c158add13abe8fdb99ff45f560d5fc62de654
parentd94e3e1abfecad4c2f64b44db854352d946d7551
soup-multipart: Fix generation of Content-Disposition for broken servers

Some servers require that Content-Disposition headers use
quoted-string values, even if the provided filename can be represented
as a token. So use soup_header_g_string_append_param_quoted(), but also
change that to fall back to using RFC 5987 encoding if necessary, so
that we can still specify UTF-8-encoded filenames.
libsoup/soup-headers.c
libsoup/soup-multipart.c