You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Would it be possible to validate the proxy response with the status code and the version?
Some proxy response with connected and not connection established and in that case the validation false.
If it could be changed to something like this, it would also work for proxies with a different response.
@Override
public boolean validateProxyResponse(ProxyResponse response) {
Objects.requireNonNull(response, "'response' cannot be null.");
final HttpStatusLine status = response.getStatus();
if (status == null) {
logger.error("Response does not contain a status line. {}", response);
return false;
}
return status.getStatusCode() == 200 && SUPPORTED_VERSIONS.contains(status.getProtocolVersion());
}
The text was updated successfully, but these errors were encountered:
Would it be possible to validate the proxy response with the status code and the version?
Some proxy response with connected and not connection established and in that case the validation false.
If it could be changed to something like this, it would also work for proxies with a different response.
The text was updated successfully, but these errors were encountered: