提交 5b1d883d 编写于 作者: A aefimov

8174985: NTLM authentication doesn't work with IIS if NTLM cache is disabled

Reviewed-by: dfuchs
上级 fe5160fa
......@@ -952,7 +952,11 @@ public class HttpClient extends NetworkClient {
pi.setContentType(responses.findValue("content-type"));
}
if (isKeepingAlive()) {
// If disableKeepAlive == true, the client will not be returned
// to the cache. But we still need to use a keepalive stream to
// allow the multi-message authentication exchange on the connection
boolean useKeepAliveStream = isKeepingAlive() || disableKeepAlive;
if (useKeepAliveStream) {
// Wrap KeepAliveStream if keep alive is enabled.
logFinest("KeepAlive stream used: " + url);
serverInput = new KeepAliveStream(serverInput, pi, cl, this);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册