From e0b036fe68579b3ffb69b450acf2d17bb7162cf3 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= <essen@ninenines.eu>
Date: Fri, 2 Nov 2018 13:54:19 +0100
Subject: Add tests for charsets_provided

Fix cases where the q-value is 0 and where a wildcard
was sent in the accept-charset header.

Also don't send a charset in the content-type of the
response if the media type is not text.

Thanks to Philip Witty for help figuring this out.
---
 doc/src/manual/cowboy_rest.asciidoc | 3 +++
 1 file changed, 3 insertions(+)

(limited to 'doc/src/manual/cowboy_rest.asciidoc')

diff --git a/doc/src/manual/cowboy_rest.asciidoc b/doc/src/manual/cowboy_rest.asciidoc
index 19f4820..dd5fa7e 100644
--- a/doc/src/manual/cowboy_rest.asciidoc
+++ b/doc/src/manual/cowboy_rest.asciidoc
@@ -175,6 +175,9 @@ req() :: #{
 }
 ----
 
+Note that Cowboy will only append the charset to the
+content-type header of the response if the media type is text.
+
 === content_types_accepted
 
 [source,erlang]
-- 
cgit v1.2.3

