diff options
author | Dan Winship <danw@src.gnome.org> | 2009-04-03 00:25:51 +0000 |
---|---|---|
committer | Dan Winship <danw@src.gnome.org> | 2009-04-03 00:25:51 +0000 |
commit | 2775879351028fe0f1a1387150f212d72f806bb6 (patch) | |
tree | bb108da2cd7e5f7fbe1b3c8dcddcb3de3d3d0205 /libsoup/soup-message-headers.h | |
parent | e9ba1d1933517fa83bfefe7c6de52f0715f62b40 (diff) | |
download | libsoup-2775879351028fe0f1a1387150f212d72f806bb6.tar.gz |
Bug 576760 – soup_message_headers_get_content_type returns bad headers
* libsoup/soup-message-headers.c (soup_message_headers_get_one)
(soup_message_headers_get_list): New replacements for
soup_message_headers_get(), indicating explicitly whether the
caller expects the header to be a list or not; for non-list-type
headers, if there's more than one, the second one should be
ignored rather than concatenated to the first.
(soup_message_headers_get): deprecate this.
* libsoup/*.c:
* tests/*.c: Update to use soup_message_headers_get_one() or
_get_list() as appropriate.
* tests/header-parsing.c (do_content_type_tests): Add some tests
of Content-Type parsing/setting, including making sure that
duplicate Content-Type headers are ignored.
* docs/reference/libsoup-2.4-sections.txt: update
svn path=/trunk/; revision=1258
Diffstat (limited to 'libsoup/soup-message-headers.h')
-rw-r--r-- | libsoup/soup-message-headers.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libsoup/soup-message-headers.h b/libsoup/soup-message-headers.h index 6572f396..f80d1235 100644 --- a/libsoup/soup-message-headers.h +++ b/libsoup/soup-message-headers.h @@ -35,6 +35,10 @@ void soup_message_headers_clear (SoupMessageHeaders *hdrs); const char *soup_message_headers_get (SoupMessageHeaders *hdrs, const char *name); +const char *soup_message_headers_get_one (SoupMessageHeaders *hdrs, + const char *name); +const char *soup_message_headers_get_list (SoupMessageHeaders *hdrs, + const char *name); typedef void (*SoupMessageHeadersForeachFunc)(const char *name, const char *value, |