aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2020-01-06 14:42:24 +0100
committerLoïc Hoguin <[email protected]>2020-01-06 14:42:24 +0100
commitedea415da87d7f6fe9f4fcd4306ce3e7e38727ed (patch)
treeac5401974a4b104d9736611fe71161fcff6da29d /doc
parent5e0be061bbb2ca8c12037d8baa209487e0bd58c6 (diff)
downloadcowboy-edea415da87d7f6fe9f4fcd4306ce3e7e38727ed.tar.gz
cowboy-edea415da87d7f6fe9f4fcd4306ce3e7e38727ed.tar.bz2
cowboy-edea415da87d7f6fe9f4fcd4306ce3e7e38727ed.zip
Fix cowboy_req:parse_header manual for unknown headers
Diffstat (limited to 'doc')
-rw-r--r--doc/src/manual/cowboy_req.parse_header.asciidoc7
1 files changed, 2 insertions, 5 deletions
diff --git a/doc/src/manual/cowboy_req.parse_header.asciidoc b/doc/src/manual/cowboy_req.parse_header.asciidoc
index 3f68179..2f8ec36 100644
--- a/doc/src/manual/cowboy_req.parse_header.asciidoc
+++ b/doc/src/manual/cowboy_req.parse_header.asciidoc
@@ -192,11 +192,8 @@ parse_header(<<"x-forwarded-for">>, Req) -> [Token]
Token :: binary() %% case sensitive
----
-.Unknown headers
-[source,erlang]
-----
-parse_header(_, Req) -> {undefined, RawValue}
-----
+This function will crash when attempting to parse a
+header Cowboy does not currently understand.
== Changelog