We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HttpMocaConnection is stripping out the newline characters with this line: final String responseBody = in.lines().collect(Collectors.joining());
final String responseBody = in.lines().collect(Collectors.joining());
I suggest replacing it with:
StringBuilder buf = new StringBuilder(); int charsRead; char[] cbuf = new char[1024]; while ((charsRead = in.read(cbuf)) != -1) { buf.append(cbuf, 0, charsRead); } final String responseBody = buf.toString();
The text was updated successfully, but these errors were encountered:
No branches or pull requests
HttpMocaConnection is stripping out the newline characters with this line:
final String responseBody = in.lines().collect(Collectors.joining());
I suggest replacing it with:
The text was updated successfully, but these errors were encountered: