diff options
author | Dan Winship <danw@gnome.org> | 2010-04-06 12:05:26 -0400 |
---|---|---|
committer | Dan Winship <danw@gnome.org> | 2010-04-09 19:51:33 -0400 |
commit | 7dfc7855fc9e41fd542c0cef7a229fe2c2e959ca (patch) | |
tree | 0c304cb57a1d3569d21da3c08564f8d7528c2b67 /tests/header-parsing.c | |
parent | 6ce2bb5d1e4dfc1429567cc6d2b5232f421af2b3 (diff) | |
download | libsoup-7dfc7855fc9e41fd542c0cef7a229fe2c2e959ca.tar.gz libsoup-7dfc7855fc9e41fd542c0cef7a229fe2c2e959ca.tar.bz2 libsoup-7dfc7855fc9e41fd542c0cef7a229fe2c2e959ca.zip |
soup_header_g_string_append_param: if @value is a token, don't quote it
also add soup_header_g_string_append_param_quoted(), for places that
need to guarantee they're adding a quoted-string, not a token, even if
a token would be syntactically correct. (eg, digest auth, where lots of
implementations are very very picky)
Diffstat (limited to 'tests/header-parsing.c')
-rw-r--r-- | tests/header-parsing.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/header-parsing.c b/tests/header-parsing.c index e8799b3f..bc1b8cfc 100644 --- a/tests/header-parsing.c +++ b/tests/header-parsing.c @@ -882,7 +882,7 @@ do_rfc2231_tests (void) #define CONTENT_TYPE_TEST_MIME_TYPE "text/plain" #define CONTENT_TYPE_TEST_ATTRIBUTE "charset" #define CONTENT_TYPE_TEST_VALUE "US-ASCII" -#define CONTENT_TYPE_TEST_HEADER "text/plain; charset=\"US-ASCII\"" +#define CONTENT_TYPE_TEST_HEADER "text/plain; charset=US-ASCII" #define CONTENT_TYPE_BAD_HEADER "plain text, not text/html" @@ -963,7 +963,7 @@ struct { { "five", "test with \xC3\xA1\xC3\xA7\xC4\x89\xC3\xA8\xC3\xB1\xC5\xA3\xC5\xA1" } }; -#define TEST_PARAMS_RESULT "one=\"foo\", two=\"test with spaces\", three=\"test with \\\"quotes\\\" and \\\\s\", four, five*=UTF-8''test%20with%20%C3%A1%C3%A7%C4%89%C3%A8%C3%B1%C5%A3%C5%A1" +#define TEST_PARAMS_RESULT "one=foo, two=\"test with spaces\", three=\"test with \\\"quotes\\\" and \\\\s\", four, five*=UTF-8''test%20with%20%C3%A1%C3%A7%C4%89%C3%A8%C3%B1%C5%A3%C5%A1" static void do_append_param_tests (void) |