diff options
author | Dan Winship <danw@src.gnome.org> | 2008-10-01 21:12:24 +0000 |
---|---|---|
committer | Dan Winship <danw@src.gnome.org> | 2008-10-01 21:12:24 +0000 |
commit | 91d657fb12308d51608dd3f6b6c4b3fa6b117bee (patch) | |
tree | f4934ecc67dd6055b8ab26c52d8fd740bbec807e /libsoup/soup-headers.h | |
parent | 7feac8b461560dbedd05f81395104a5616705f1c (diff) | |
download | libsoup-91d657fb12308d51608dd3f6b6c4b3fa6b117bee.tar.gz |
Update these to deal with RFC2231-encoded UTF-8 header params
* libsoup/soup-headers.c (soup_header_parse_param_list)
(soup_header_parse_semi_param_list): Update these to deal with
RFC2231-encoded UTF-8 header params
(soup_header_g_string_append_param): new utility method to do
parameters with quoted-strings (handling escaping) and RFC2231.
* libsoup/soup-auth-digest.c (get_authorization):
* libsoup/soup-auth-domain-basic.c (challenge):
* libsoup/soup-auth-domain-digest.c (challenge): use
soup_header_g_string_append_param so we handle escaping correctly
* libsoup/soup-message-headers.c
(soup_message_headers_get_content_type)
(soup_message_headers_set_content_type)
(soup_message_headers_get_content_disposition)
(soup_message_headers_set_content_disposition): New convenience
methods.
* tests/header-parsing.c (do_rfc2231_tests): new test of RFC2231
encoded header parsing in Content-Disposition.
* tests/get.c (get_url): use
soup_message_headers_get_content_type()
* docs/reference/libsoup-2.4-sections.txt: update
svn path=/trunk/; revision=1175
Diffstat (limited to 'libsoup/soup-headers.h')
-rw-r--r-- | libsoup/soup-headers.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libsoup/soup-headers.h b/libsoup/soup-headers.h index 80b56e3b..158c248e 100644 --- a/libsoup/soup-headers.h +++ b/libsoup/soup-headers.h @@ -46,6 +46,10 @@ GHashTable *soup_header_parse_param_list (const char *header); GHashTable *soup_header_parse_semi_param_list (const char *header); void soup_header_free_param_list (GHashTable *param_list); +void soup_header_g_string_append_param (GString *string, + const char *name, + const char *value); + G_END_DECLS #endif /*SOUP_HEADERS_H*/ |