Browse Source

Fix cowboy_req:parse_header manual for unknown headers

Loïc Hoguin 5 years ago
parent
commit
edea415da8
1 changed files with 2 additions and 5 deletions
  1. 2 5
      doc/src/manual/cowboy_req.parse_header.asciidoc

+ 2 - 5
doc/src/manual/cowboy_req.parse_header.asciidoc

@@ -192,11 +192,8 @@ parse_header(<<"x-forwarded-for">>, Req) -> [Token]
 Token :: binary()                   %% case sensitive
 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
 == Changelog