From edea415da87d7f6fe9f4fcd4306ce3e7e38727ed Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= <essen@ninenines.eu>
Date: Mon, 6 Jan 2020 14:42:24 +0100
Subject: Fix cowboy_req:parse_header manual for unknown headers

---
 doc/src/manual/cowboy_req.parse_header.asciidoc | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

(limited to 'doc/src/manual/cowboy_req.parse_header.asciidoc')

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
 
-- 
cgit v1.2.3

