mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-24 16:23:40 +01:00
Fix problem with decoding http headers over tls connections
This fixed GitHub issue 96.
This commit is contained in:
parent
150a5392e5
commit
7e73ed88f7
@ -201,8 +201,8 @@ parse_headers(#state{request_method = Method,
|
|||||||
trail = Data} =
|
trail = Data} =
|
||||||
State) ->
|
State) ->
|
||||||
PktType = case Method of
|
PktType = case Method of
|
||||||
undefined -> http;
|
undefined -> http_bin;
|
||||||
_ -> httph
|
_ -> httph_bin
|
||||||
end,
|
end,
|
||||||
case erlang:decode_packet(PktType, Data, []) of
|
case erlang:decode_packet(PktType, Data, []) of
|
||||||
{ok, Pkt, Rest} ->
|
{ok, Pkt, Rest} ->
|
||||||
|
Loading…
Reference in New Issue
Block a user