diff --git a/src/gen_nntp.erl b/src/gen_nntp.erl index 6450e7d..171c960 100644 --- a/src/gen_nntp.erl +++ b/src/gen_nntp.erl @@ -847,7 +847,7 @@ multiline(Socket, {ok, Acc}) -> case gen_tcp:recv(Socket, 0, 1000) of % End of the multi-line response. {ok, <<".\r\n">>} -> - {ok, re:replace(Acc, "^\\s+|\\s+$", "", [{return, binary}, global])}; + {ok, Acc}; {ok, Line} when is_binary(Line) -> multiline(Socket, {ok, <>}); {error, Reason} ->