summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoe Orton <joe@manyfish.uk>2021-03-06 20:06:31 +0000
committerJoe Orton <joe@manyfish.uk>2021-03-06 20:06:31 +0000
commit366578142ae78c47b89bb242c6c850cf93d78ec5 (patch)
tree54b9cca1388b9c829cf677dd1c123332b39163ec
parent2e8799a9314d82649377ee2c01fee7c84314d5ba (diff)
downloadneon-git-366578142ae78c47b89bb242c6c850cf93d78ec5.tar.gz
* src/ne_string.h (ne_strparam): Clarify allowed charset values.
-rw-r--r--src/ne_string.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ne_string.h b/src/ne_string.h
index 995cd26..d1d0e71 100644
--- a/src/ne_string.h
+++ b/src/ne_string.h
@@ -214,8 +214,8 @@ const unsigned char *ne_tolower_array(void) ne_attribute((const));
/* Encodes a extended parameter value for HTTP headers, as defined in
* RFC 5987. Returns a malloc-allocated string if the parameter
* 'value' needs to be encoded as an extended parameter, or NULL if it
- * can be used as a regular parameter. The charset of the string must
- * be non-NULL, but the language value can be NULL. */
+ * can be used as a regular parameter. The charset must be either
+ * "UTF-8" or "ISO-8859-1", but the language value can be NULL. */
char *ne_strparam(const char *charset, const char *lang,
const unsigned char *value)
ne_attribute((nonnull (1, 3))) ne_attribute_malloc;