mirror of
https://github.com/ninenines/cowboy.git
synced 2025-07-14 12:20: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
|
Token :: binary() %% case sensitive
|
||||||
----
|
----
|
||||||
|
|
||||||
.Unknown headers
|
This function will crash when attempting to parse a
|
||||||
[source,erlang]
|
header Cowboy does not currently understand.
|
||||||
----
|
|
||||||
parse_header(_, Req) -> {undefined, RawValue}
|
|
||||||
----
|
|
||||||
|
|
||||||
== Changelog
|
== Changelog
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue