Skip to content

Commit

Permalink
fix(client): new line in between
Browse files Browse the repository at this point in the history
  • Loading branch information
sntran authored Feb 17, 2024
1 parent 81094c7 commit 3a9b342
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gen_nntp.erl
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ connect(Address, Port, _Options) ->
%% @doc Sends a command to a NNTP socket
%%
%% The function will also wait for the response from server, both
%% single and mult-line responses.
%% single and multi-line responses.
%%
%% For commands that are followed by a multi-line data block, such as
%% "POST", place the block as the argument to `command/3` call.
Expand Down Expand Up @@ -837,7 +837,7 @@ multiline(Socket, {ok, Acc}) ->
{ok, <<".\r\n">>} ->
{ok, string:chomp(Acc)};
{ok, Line} when is_binary(Line) ->
multiline(Socket, {ok, <<Acc/binary, Line/binary>>});
multiline(Socket, {ok, <<Acc/binary, "\r\n", Line/binary>>});
{error, Reason} ->
{error, Reason}
end.
Expand Down

0 comments on commit 3a9b342

Please sign in to comment.