You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by "Kim (JIRA)" <ji...@apache.org> on 2013/07/26 04:57:49 UTC
[jira] [Created] (DIRMINA-956) Status code match bug in
AbstractHttpLogicHandler
Kim created DIRMINA-956:
---------------------------
Summary: Status code match bug in AbstractHttpLogicHandler
Key: DIRMINA-956
URL: https://issues.apache.org/jira/browse/DIRMINA-956
Project: MINA
Issue Type: Bug
Reporter: Kim
I found following code in AbstractHttpLogicHandler:
protected HttpProxyResponse decodeResponse(final String response) throws Exception {
...
// Status code is 3 digits
if (statusLine[1].matches("^\\d\\d\\d")) {
throw new Exception("Invalid response code (" + statusLine[1] + "). Response: " + response);
}
...
}
Is there "statusLine[1].matches("^\\d\\d\\d")" should be "!statusLine[1].matches("^\\d\\d\\d")"?
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira