-
Notifications
You must be signed in to change notification settings - Fork 138
New issue
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
HL7overHttp #17
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In the class 'AbstractHl7OverHttpDecoder'
method
'private String readLine(InputStream theInputStream, boolean theFirstLine)'
in the return statement
'return WHITESPACE_PATTERN.matcher(retVal.toString()).replaceAll(" ").trim();'
the result is trimmed this gives problems in the code class 'Hl7OverHttpResponseDecoder'
in the method 'readActionLineAndDecode' code
' String statusPart = firstLine.substring(9);
int spaceIdx = statusPart.indexOf(' ');
if (spaceIdx == -1) {
throw new DecodeException("Invalid response line, no space after status code. Line is: " + firstLine);
}
because the last ' ' is removed by the trim in the readLine, so always an error is thrown.
Removing the trim solves the problem for me.
The text was updated successfully, but these errors were encountered: