aboutsummaryrefslogtreecommitdiffstats
path: root/doc/src
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2018-11-02 13:54:19 +0100
committerLoïc Hoguin <[email protected]>2018-11-02 13:54:19 +0100
commite0b036fe68579b3ffb69b450acf2d17bb7162cf3 (patch)
tree4be263290f0ae3bef6b9bd940f6624cf035607d3 /doc/src
parent399b6a16b4a571e293437dcc8f85808f83b32ff6 (diff)
downloadcowboy-e0b036fe68579b3ffb69b450acf2d17bb7162cf3.tar.gz
cowboy-e0b036fe68579b3ffb69b450acf2d17bb7162cf3.tar.bz2
cowboy-e0b036fe68579b3ffb69b450acf2d17bb7162cf3.zip
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.
Diffstat (limited to 'doc/src')
-rw-r--r--doc/src/manual/cowboy_rest.asciidoc3
1 files changed, 3 insertions, 0 deletions
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]