diff options
author | Loïc Hoguin <[email protected]> | 2020-01-06 14:42:24 +0100 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2020-01-06 14:42:24 +0100 |
commit | edea415da87d7f6fe9f4fcd4306ce3e7e38727ed (patch) | |
tree | ac5401974a4b104d9736611fe71161fcff6da29d /doc | |
parent | 5e0be061bbb2ca8c12037d8baa209487e0bd58c6 (diff) | |
download | cowboy-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.asciidoc | 7 |
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 |