Skip to content
This repository has been archived by the owner on Nov 16, 2020. It is now read-only.

Commit

Permalink
Merge branch 'stable'
Browse files Browse the repository at this point in the history
  • Loading branch information
dumbbell committed Jun 16, 2015
2 parents bba66b3 + 599862a commit b77a30b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/src/stomp.erl
Expand Up @@ -30,7 +30,7 @@ unmarshal(Frame) ->
[Head, Body] = binary:split(Frame, <<"\n\n">>),
[Command | HeaderLines] = binary:split(Head, <<"\n">>, [global]),
Headers = [list_to_tuple(binary:split(Line, <<":">>)) || Line <- HeaderLines],
[Body1, <<>>] = binary:split(Body, [<<0>>],[{scope,{byte_size(Body)-1, 1}}]),
[Body1, <<>>] = binary:split(Body, [<<0, 10>>],[{scope,{byte_size(Body)-2, 2}}]),
{Command, Headers, Body1}.

%% ----------
Expand Down

0 comments on commit b77a30b

Please sign in to comment.