Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
2.0.7
-
None
-
None
Description
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")
?