We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 386aafe commit 08ccd26Copy full SHA for 08ccd26
edb/src/edb_dap.erl
@@ -101,7 +101,11 @@ decode_frames(Data) ->
101
102
-spec decode_frames(binary(), [frame()]) -> {[frame()], binary()}.
103
decode_frames(Data, Messages) ->
104
- case binary:split(Data, <<"\r\n\r\n">>) of
+ Separator = case os:type() of
105
+ {win32, _} -> [<<"\r\n\r\n">>, <<"\n\n">>];
106
+ _ -> <<"\r\n\r\n">>
107
+ end,
108
+ case binary:split(Data, Separator) of
109
[<<"Content-Length: ", BinLength/binary>>, Rest] when is_binary(Rest) ->
110
Length = binary_to_integer(BinLength),
111
case byte_size(Rest) < Length of
0 commit comments