0
Fork 0
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:
Loïc Hoguin 2020-01-06 14:42:24 +01:00
parent 5e0be061bb
commit edea415da8
No known key found for this signature in database
GPG key ID: 8A9DF795F6FED764

View file

@ -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