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
Messages w/o message body (payload) cause an Exception as the HttpResponse.fromBytes() method tries to access message lines which do not exist.
int lineIndex = 1; String line = responseLines[lineIndex]; while (!line.isEmpty()) { HeaderField messageField = HeaderFieldFactory.getInstance().fromString(line); int separation = line.indexOf(SPACE) + 1; responseBuilder.addMessageField(messageField, line.substring(separation, line.length())); line = responseLines[lineIndex++]; }
The last call of java line = responseLines[lineIndex++]; will cause an exception when lineIndex exceeds length or java responseLines.length .
java line = responseLines[lineIndex++];
java responseLines.length
The text was updated successfully, but these errors were encountered:
Oliver-Loeffler
No branches or pull requests
Messages w/o message body (payload) cause an Exception as the HttpResponse.fromBytes() method tries to access message lines which do not exist.
The last call of
java line = responseLines[lineIndex++];
will cause an exception when lineIndex exceeds length orjava responseLines.length
.The text was updated successfully, but these errors were encountered: