mirror of
https://github.com/ninenines/cowboy.git
synced 2025-07-14 04:10:24 +00:00
Fix cowboy_req:parse_header manual for unknown headers
This commit is contained in:
parent
5e0be061bb
commit
edea415da8
1 changed files with 2 additions and 5 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue