25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-12-22 17:28:25 +01:00

Merge pull request #513 from weiss/ignore-header-case

ejabberd_websocket: Ignore case of HTTP header values
This commit is contained in:
Paweł Chmielowski 2015-04-06 17:49:51 +02:00
commit 64978b3d9c

View File

@ -73,9 +73,10 @@ check(_Path, Headers) ->
{_, HVal} ->
case Val of
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,