Skip to content

Commit

Permalink
Preserve empty lines in the response (#32)
Browse files Browse the repository at this point in the history
Without empty lines the responses are invalid and cannot be parsed by mime parsers.
  • Loading branch information
mnapoli authored and robinvdvleuten committed Jul 3, 2017
1 parent 98553a1 commit 378e2f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Connection/Connection.php
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ private function getMultiLineResponse(Response $response)

// Check if the line terminates the text response.
if ($line === '.') {
return new MultiLineResponse($response, array_filter($lines));
return new MultiLineResponse($response, $lines);
}

// If 1st char is '.' it's doubled (NNTP/RFC977 2.4.1).
Expand Down

0 comments on commit 378e2f9

Please sign in to comment.