diff options
author | Patrick Griffis <pgriffis@igalia.com> | 2021-07-22 10:20:56 -0500 |
---|---|---|
committer | Patrick Griffis <pgriffis@igalia.com> | 2021-07-24 11:17:39 -0500 |
commit | 4bbc39f30a48e38d7c60a375a88d2a2e6a41a0b8 (patch) | |
tree | 372c8a79b0760754a7492f61e9250a1348930654 | |
parent | 7f5af593e8cebebd310d45b3708f69f46ff01c51 (diff) | |
download | libsoup-4bbc39f30a48e38d7c60a375a88d2a2e6a41a0b8.tar.gz |
headers: Fix parsing of Content-Type
With d9f97292 the intention was only to change the behavior of soup_message_headers_get_content_disposition()
however parse_content_foo() is also used for Content-Type.
Fixes #232
-rw-r--r-- | libsoup/soup-message-headers.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libsoup/soup-message-headers.c b/libsoup/soup-message-headers.c index aaf496e7..b6b3827b 100644 --- a/libsoup/soup-message-headers.c +++ b/libsoup/soup-message-headers.c @@ -1283,7 +1283,8 @@ parse_content_foo (SoupMessageHeaders *hdrs, const char *header_name, * is a parameter (foo=bar). */ equal = strchr (header, '='); semi = strchr (header, ';'); - if (equal && (!semi || (equal < semi))) { + if (header_name == SOUP_HEADER_CONTENT_DISPOSITION && + (equal && (!semi || (equal < semi)))) { semi = (char *)header; if (foo) *foo = NULL; |