Fix problem with decoding http headers over tls connections

This fixed GitHub issue 96.
This commit is contained in:
Paweł Chmielowski 2013-09-16 16:32:02 +02:00
parent 150a5392e5
commit 7e73ed88f7
1 changed files with 2 additions and 2 deletions

View File

@ -201,8 +201,8 @@ parse_headers(#state{request_method = Method,
trail = Data} =
State) ->
PktType = case Method of
undefined -> http;
_ -> httph
undefined -> http_bin;
_ -> httph_bin
end,
case erlang:decode_packet(PktType, Data, []) of
{ok, Pkt, Rest} ->