mirror of
https://github.com/processone/ejabberd
synced 2025-10-03 17:59:31 +02:00
Merge pull request #513 from weiss/ignore-header-case
ejabberd_websocket: Ignore case of HTTP header values
This commit is contained in:
commit
64978b3d9c
1 changed files with 3 additions and 2 deletions
|
@ -73,9 +73,10 @@ check(_Path, Headers) ->
|
||||||
{_, HVal} ->
|
{_, HVal} ->
|
||||||
case Val of
|
case Val of
|
||||||
ignore -> false; % ignore value -> ok, remove from list
|
ignore -> false; % ignore value -> ok, remove from list
|
||||||
HVal -> false; % expected val -> ok, remove from list
|
|
||||||
_ ->
|
_ ->
|
||||||
true % val is different, keep in list
|
% expected value -> ok, remove from list (false)
|
||||||
|
% value is different, keep in list (true)
|
||||||
|
str:to_lower(HVal) /= Val
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue